Merge pull request #705 from resmo/for-ansible

cloudstack: cs_instance: fix missing resource error in check mode if instance is not yet present
reviewable/pr18780/r1
Brian Coca 10 years ago
commit 8a89f4afe4

@ -486,6 +486,8 @@ class AnsibleCloudStackInstance(AnsibleCloudStack):
else:
instance = self.update_instance(instance)
# In check mode, we do not necessarely have an instance
if instance:
instance = self.ensure_tags(resource=instance, resource_type='UserVm')
return instance

Loading…
Cancel
Save