diff --git a/data2tag/bin/data2tag.py b/data2tag/bin/data2tag.py index 44843db2..daa9bce7 100755 --- a/data2tag/bin/data2tag.py +++ b/data2tag/bin/data2tag.py @@ -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 diff --git a/data2tag/data2tag-1.3.mkp b/data2tag/data2tag-1.3.mkp deleted file mode 100644 index 8fd1eace..00000000 Binary files a/data2tag/data2tag-1.3.mkp and /dev/null differ diff --git a/data2tag/data2tag-1.4.1.mkp b/data2tag/data2tag-1.4.1.mkp new file mode 100644 index 00000000..d5b47c42 Binary files /dev/null and b/data2tag/data2tag-1.4.1.mkp differ