From 2f255f5b967ac4d8ddba53af21adf192f2330a53 Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Sun, 26 Apr 2015 23:09:33 +0200 Subject: [PATCH] cloudstack: get_vm(): fix missing zone Fixes returning wrong VM having identical name in different zone. --- lib/ansible/module_utils/cloudstack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/module_utils/cloudstack.py b/lib/ansible/module_utils/cloudstack.py index 48f16a13992..0c7da28e2a7 100644 --- a/lib/ansible/module_utils/cloudstack.py +++ b/lib/ansible/module_utils/cloudstack.py @@ -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']: