2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-01-12 02:52:30 +00:00

Treat empty attributes as unset

This fixes behavior when, for example, crypted.rootpassword
is explicitly blanked
This commit is contained in:
Jarrod Johnson
2021-11-29 11:22:48 -05:00
parent d049934626
commit 5718e07238

View File

@@ -99,7 +99,7 @@ def retrieve_nodegroup(nodegroup, element, configmanager, inputdata):
yield msg.ListAttributes(
kv={attribute: currattr},
desc=desc)
else:
elif currattr:
print(attribute)
print(repr(currattr))
raise Exception("BUGGY ATTRIBUTE FOR NODEGROUP")
@@ -148,7 +148,7 @@ def retrieve_nodes(nodes, element, configmanager, inputdata):
elif isinstance(currattr, list):
yield msg.ListAttributes(
node, {attribute: currattr}, desc)
else:
elif currattr:
print(attribute)
print(repr(currattr))
raise Exception("BUGGY ATTRIBUTE FOR NODE")