Only create tags if tags are provided (#36921)

pull/36921/merge
Sloane Hertel 7 years ago committed by Ryan Brown
parent 0e7106b106
commit 9deef5626f

@ -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

Loading…
Cancel
Save