cloudstack: change order of tags handling, fixes update of tag value does not work
This commit is contained in:
parent
3410a855b0
commit
1d59caed07
1 changed files with 1 additions and 1 deletions
|
@ -371,8 +371,8 @@ class AnsibleCloudStack(object):
|
|||
if 'tags' in resource:
|
||||
tags = self.module.params.get('tags')
|
||||
if tags is not None:
|
||||
self._process_tags(resource, resource_type, self._tags_that_should_exist_or_be_updated(resource, tags))
|
||||
self._process_tags(resource, resource_type, self._tags_that_should_not_exist(resource, tags), operation="delete")
|
||||
self._process_tags(resource, resource_type, self._tags_that_should_exist_or_be_updated(resource, tags))
|
||||
self.tags = None
|
||||
resource['tags'] = self.get_tags(resource)
|
||||
return resource
|
||||
|
|
Loading…
Reference in a new issue