autostatus: cosmétique de l'info additionnelle

This commit is contained in:
Daniel STAN 2014-10-08 18:08:34 +02:00
parent da5e12241d
commit 2a193a5f59
2 changed files with 12 additions and 13 deletions

View file

@ -16,7 +16,9 @@ def execute(macro, text) :
except IndexError:
dec = u"N/A"
dec = dec.strip()
descriptions[host] = u'%s (%s)' % (host, dec)
descriptions[host] = u'%s' % host
if dec:
descriptions[host] += u' (%s)' % dec
lines = open('/usr/scripts/var/local.status').readlines()