mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
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 = {}
|
||||||
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']:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue