Skip to content

Commit

Permalink
adds check if value is not None
Browse files Browse the repository at this point in the history
  • Loading branch information
gurubert committed Dec 5, 2023
1 parent dd173b0 commit 3412bc3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data2tag/bin/data2tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
if attr in info:
for pattern, settags in patterns.items():
for value in info[attr]:
if pattern.search(value):
if value and pattern.search(value):
for taggroup, tag in settags.items():
if host_tags.get(taggroup) != tag:
tags[taggroup] = tag
Expand Down
Binary file removed data2tag/data2tag-1.3.mkp
Binary file not shown.
Binary file added data2tag/data2tag-1.4.1.mkp
Binary file not shown.

0 comments on commit 3412bc3

Please sign in to comment.