mirror of
https://github.com/xcat2/confluent.git
synced 2025-07-15 17:16:11 +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:
@ -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:
|
||||
|
Reference in New Issue
Block a user