From 7f51ec8babaf72e554d226dff57be5736fb56205 Mon Sep 17 00:00:00 2001 From: Ondra Machacek Date: Tue, 27 Sep 2016 17:13:36 +0200 Subject: [PATCH] ovirt_vms: wait for VM to be created for states stopped/suspended (#3044) --- lib/ansible/modules/extras/cloud/ovirt/ovirt_vms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/extras/cloud/ovirt/ovirt_vms.py b/lib/ansible/modules/extras/cloud/ovirt/ovirt_vms.py index 8aa4a98364b..0652b24c10a 100644 --- a/lib/ansible/modules/extras/cloud/ovirt/ovirt_vms.py +++ b/lib/ansible/modules/extras/cloud/ovirt/ovirt_vms.py @@ -761,6 +761,7 @@ def main(): ) elif state == 'stopped': vms_module.create( + result_state=otypes.VmStatus.DOWN if vm is None else None, clone=module.params['clone'], clone_permissions=module.params['clone_permissions'], ) @@ -781,6 +782,7 @@ def main(): ) elif state == 'suspended': vms_module.create( + result_state=otypes.VmStatus.DOWN if vm is None else None, clone=module.params['clone'], clone_permissions=module.params['clone_permissions'], )