mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
ovirt_vm: Fix undefined variable (#44618)
Fix unassigned variable while suspending vm.
This commit is contained in:
@@ -2057,7 +2057,7 @@ def main():
|
|||||||
)
|
)
|
||||||
vms_module.post_present(ret['id'])
|
vms_module.post_present(ret['id'])
|
||||||
elif state == 'suspended':
|
elif state == 'suspended':
|
||||||
vms_module.create(
|
ret = vms_module.create(
|
||||||
entity=vm,
|
entity=vm,
|
||||||
result_state=otypes.VmStatus.DOWN if vm is None else None,
|
result_state=otypes.VmStatus.DOWN if vm is None else None,
|
||||||
clone=module.params['clone'],
|
clone=module.params['clone'],
|
||||||
|
|||||||
Reference in New Issue
Block a user