ovirt_vm: Fix undefined variable (#44618)

Fix unassigned variable while suspending vm.
This commit is contained in:
Ondra Machacek 2018-08-24 08:29:02 +02:00 committed by ansibot
parent 8b175d99c6
commit 56b9823bb8

View file

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