Only create tags if tags are provided (#36921)
This commit is contained in:
parent
0e7106b106
commit
9deef5626f
1 changed files with 1 additions and 3 deletions
|
@ -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…
Reference in a new issue