Commit 2f255f5b by Rene Moser

cloudstack: get_vm(): fix missing zone

Fixes returning wrong VM having identical name in different zone.
parent ca88189b
...@@ -161,6 +161,7 @@ class AnsibleCloudStack: ...@@ -161,6 +161,7 @@ class AnsibleCloudStack:
args = {} args = {}
args['projectid'] = self.get_project(key='id') args['projectid'] = self.get_project(key='id')
args['zoneid'] = self.get_zone(key='id')
vms = self.cs.listVirtualMachines(**args) vms = self.cs.listVirtualMachines(**args)
if vms: if vms:
for v in vms['virtualmachine']: for v in vms['virtualmachine']:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment