ovirt_vms: wait for VM to be created for states stopped/suspended (#3044)
This commit is contained in:
parent
c0cfd1db45
commit
7f51ec8bab
1 changed files with 2 additions and 0 deletions
|
@ -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'],
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue