2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-12 10:49:17 +00:00

Fix handling of unicode data in inventory

It is possible for unicode data to appear in some data values.  Use a unicode
string to hold the value, in case of unicode data coming from server.
This commit is contained in:
Jarrod Johnson 2016-05-23 15:36:30 -04:00
parent 41e84c7c47
commit 9a93baed0e

View File

@ -103,7 +103,7 @@ try:
for datum in info:
if info[datum] is None:
continue
print('{0}: {1} {2}: {3}'.format(node, prefix,
print(u'{0}: {1} {2}: {3}'.format(node, prefix,
pretty(datum),
info[datum]))
except KeyboardInterrupt: