Merge pull request #52 from SUNET/jocar-allow-empty-hosts
Allow empty hosts
This commit is contained in:
commit
646c40daf1
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue