Allow for hosts without class(s)
This commit is contained in:
parent
b39960484f
commit
c72f5ccd86
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue