mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 11:22:47 +00:00
Only create tags if tags are provided (#36921)
This commit is contained in:
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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user