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

pull/18777/head
Ondra Machacek 8 years ago committed by Matt Clay
parent c0cfd1db45
commit 7f51ec8bab

@ -761,6 +761,7 @@ def main():
) )
elif state == 'stopped': elif state == 'stopped':
vms_module.create( vms_module.create(
result_state=otypes.VmStatus.DOWN if vm is None else None,
clone=module.params['clone'], clone=module.params['clone'],
clone_permissions=module.params['clone_permissions'], clone_permissions=module.params['clone_permissions'],
) )
@ -781,6 +782,7 @@ def main():
) )
elif state == 'suspended': elif state == 'suspended':
vms_module.create( vms_module.create(
result_state=otypes.VmStatus.DOWN if vm is None else None,
clone=module.params['clone'], clone=module.params['clone'],
clone_permissions=module.params['clone_permissions'], clone_permissions=module.params['clone_permissions'],
) )

Loading…
Cancel
Save