diff options
author | Ondra Machacek <machacek.ondra@gmail.com> | 2016-09-27 17:13:36 +0200 |
---|---|---|
committer | Ryan Brown <sb@ryansb.com> | 2016-09-27 11:13:36 -0400 |
commit | aeecd8b09ea95759a0ef16528376f5590badebdf (patch) | |
tree | df191e23705b7d9fadca053636ec6cf6521c81ed /cloud/ovirt | |
parent | 119bc466be8d11263ecd2dac03054f39266e73b1 (diff) | |
download | ansible-modules-extras-aeecd8b09ea95759a0ef16528376f5590badebdf.tar.gz |
ovirt_vms: wait for VM to be created for states stopped/suspended (#3044)
Diffstat (limited to 'cloud/ovirt')
-rw-r--r-- | cloud/ovirt/ovirt_vms.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cloud/ovirt/ovirt_vms.py b/cloud/ovirt/ovirt_vms.py index 8aa4a983..0652b24c 100644 --- a/cloud/ovirt/ovirt_vms.py +++ b/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'], ) |