From aa4783672dd681e8ef58ae04c7508b162def1a04 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 14 Jul 2015 14:13:29 -0400 Subject: [PATCH] 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. --- confluent_client/bin/nodehealth | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_client/bin/nodehealth b/confluent_client/bin/nodehealth index 83e4a9d8..75a7c6b0 100755 --- a/confluent_client/bin/nodehealth +++ b/confluent_client/bin/nodehealth @@ -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: