Formatted numbers correctly in verbose outputs. This closes
@@ -540,8 +540,12 @@ class BusManager(object):
row.append(PlainNum(node.routerLink))
if self.opts.verbose:
- row.append(get(node, 'protocolVersion'))
- row.append(get(node, 'cost'))
+ row.append(PlainNum(get(node, 'protocolVersion')))
+ cost = get(node, 'cost')
+ if cost:
+ row.append(PlainNum(cost))
+ else:
+ row.append("")
row.append('%r' % self._list_clean(node.linkState))
row.append('%r' % self._list_clean(node.validOrigins))
rows.append(row)
@@ -604,9 +608,9 @@ class BusManager(object):
row.append(self._addr_phase(addr.name))
row.append(addr.distribution)
if has_priority:
- row.append(addr.priority if addr.priority >= 0 else "-")
+ row.append(PlainNum(addr.priority) if addr.priority >= 0 else "-")
if self.opts.verbose:
- row.append(addr.inProcess)
+ row.append(PlainNum(addr.inProcess))
row.append(PlainNum(addr.containerCount) if addr.name[0] in 'CDEF' else PlainNum(addr.subscriberCount))
row.append(PlainNum(addr.remoteCount))
row.append(PlainNum(addr.deliveriesIngress))
