Skip to content

Commit

Permalink
ovirt_vms: Pass correct VM entity to create method (ansible#37249)
Browse files Browse the repository at this point in the history
  • Loading branch information
machacekondra authored and ansibot committed Mar 10, 2018
1 parent 11ad559 commit c5c78ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ansible/modules/cloud/ovirt/ovirt_vms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1898,6 +1898,7 @@ def main():
vms_module.changed = import_vm(module, connection)

ret = vms_module.create(
entity=vm,
result_state=otypes.VmStatus.DOWN if vm is None else None,
clone=module.params['clone'],
clone_permissions=module.params['clone_permissions'],
Expand All @@ -1920,6 +1921,7 @@ def main():
)
elif state == 'suspended':
vms_module.create(
entity=vm,
result_state=otypes.VmStatus.DOWN if vm is None else None,
clone=module.params['clone'],
clone_permissions=module.params['clone_permissions'],
Expand Down

0 comments on commit c5c78ab

Please sign in to comment.