cloudstack: get_vm(): fix missing zone

Fixes returning wrong VM having identical name in different zone.
This commit is contained in:
Rene Moser 2015-04-26 23:09:33 +02:00
parent ca88189bf7
commit 2f255f5b96

View file

@ -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']: