ovirt_vms: wait for VM to be created for states stopped/suspended (#3044)

This commit is contained in:
Ondra Machacek 2016-09-27 17:13:36 +02:00 committed by Matt Clay
parent c0cfd1db45
commit 7f51ec8bab

View file

@ -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'],
)