Merge pull request #52 from SUNET/jocar-allow-empty-hosts

Allow empty hosts
This commit is contained in:
Johan Wassberg 2024-04-15 11:43:21 +02:00 committed by GitHub
commit 646c40daf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: