2
0
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:
Jarrod Johnson 2015-07-14 14:13:29 -04:00
parent 859aad793d
commit aa4783672d

View File

@ -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: