Only create tags if tags are provided (#36921)

This commit is contained in:
Sloane Hertel 2018-03-01 15:30:08 -05:00 committed by Ryan Brown
parent 0e7106b106
commit 9deef5626f

View file

@ -238,12 +238,10 @@ def tags_changed(pcx_id, client, module):
tags = [item for sublist in tag_values for item in sublist]
if sorted(pcx_tags) == sorted(tags):
changed = False
return changed
else:
elif tags:
delete_tags(pcx_id, client, module)
create_tags(pcx_id, client, module)
changed = True
return changed
return changed