diff --git a/global/overlay/etc/puppet/cosmos_enc.py b/global/overlay/etc/puppet/cosmos_enc.py index dca12d3..7769a9a 100755 --- a/global/overlay/etc/puppet/cosmos_enc.py +++ b/global/overlay/etc/puppet/cosmos_enc.py @@ -26,7 +26,8 @@ found = False classes = dict() for reg, cls in rules.items(): if re.search(reg, node_name): - classes.update(cls) + if cls: + classes.update(cls) found = True if not found: