mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-12 10:49:17 +00:00
Fix unicode error in nodehealth output
If unicode data was in the incoming data, string.format would choke. Make the string template unicode so that it is able to cope.
This commit is contained in:
parent
859aad793d
commit
aa4783672d
@ -75,7 +75,7 @@ def main():
|
||||
healthexplanations[node].append(explanation)
|
||||
if node in healthbynode and node in healthexplanations:
|
||||
if healthexplanations[node]:
|
||||
print('{0}: {1} ({2})'.format(
|
||||
print(u'{0}: {1} ({2})'.format(
|
||||
node, healthbynode[node],
|
||||
','.join(healthexplanations[node])))
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user