cloudstack: get_vm(): fix missing zone
Fixes returning wrong VM having identical name in different zone.
This commit is contained in:
parent
ca88189bf7
commit
2f255f5b96
1 changed files with 1 additions and 0 deletions
|
@ -161,6 +161,7 @@ class AnsibleCloudStack:
|
|||
|
||||
args = {}
|
||||
args['projectid'] = self.get_project(key='id')
|
||||
args['zoneid'] = self.get_zone(key='id')
|
||||
vms = self.cs.listVirtualMachines(**args)
|
||||
if vms:
|
||||
for v in vms['virtualmachine']:
|
||||
|
|
Loading…
Reference in a new issue