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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user