mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-20 07:40:58 +00:00
cloudstack: use jop polling in tag handling, fixes outdated tags returned.
In some cases the async job did not finish fast enough, causing returning an unexpeded result.
This commit is contained in:
@@ -348,9 +348,10 @@ class AnsibleCloudStack(object):
|
||||
args['resourcetype'] = resource_type
|
||||
args['tags'] = tags
|
||||
if operation == "create":
|
||||
self.cs.createTags(**args)
|
||||
response = self.cs.createTags(**args)
|
||||
else:
|
||||
self.cs.deleteTags(**args)
|
||||
response = self.cs.deleteTags(**args)
|
||||
self.poll_job(response)
|
||||
|
||||
|
||||
def _tags_that_should_exist_or_be_updated(self, resource, tags):
|
||||
|
||||
Reference in New Issue
Block a user