Allow for hosts without class(s)

This commit is contained in:
Johan Wassberg 2024-04-12 15:32:40 +02:00
parent b39960484f
commit c72f5ccd86
Signed by: jocar
GPG key ID: BE4EC2EEADF2C31B

View file

@ -26,6 +26,7 @@ found = False
classes = dict() classes = dict()
for reg, cls in rules.items(): for reg, cls in rules.items():
if re.search(reg, node_name): if re.search(reg, node_name):
if cls:
classes.update(cls) classes.update(cls)
found = True found = True