mirror of
https://github.com/xcat2/confluent.git
synced 2026-11-22 10:22:27 +00:00
Decode bytes attribute values outside of dicts too
This commit is contained in:
@@ -99,8 +99,8 @@ def get_hostvars(cfg, node):
|
||||
data = data.get('value')
|
||||
if not data:
|
||||
continue
|
||||
if isinstance(data, bytes):
|
||||
data = data.decode()
|
||||
if isinstance(data, bytes):
|
||||
data = data.decode()
|
||||
attribs[attrib] = data
|
||||
return nest_attributes(attribs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user