mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ovirt_vms: Pass correct VM entity to create method (#37249)
This commit is contained in:
parent
11ad559010
commit
c5c78ab045
1 changed files with 2 additions and 0 deletions
|
@ -1898,6 +1898,7 @@ def main():
|
||||||
vms_module.changed = import_vm(module, connection)
|
vms_module.changed = import_vm(module, connection)
|
||||||
|
|
||||||
ret = vms_module.create(
|
ret = vms_module.create(
|
||||||
|
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'],
|
||||||
clone_permissions=module.params['clone_permissions'],
|
clone_permissions=module.params['clone_permissions'],
|
||||||
|
@ -1920,6 +1921,7 @@ def main():
|
||||||
)
|
)
|
||||||
elif state == 'suspended':
|
elif state == 'suspended':
|
||||||
vms_module.create(
|
vms_module.create(
|
||||||
|
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'],
|
||||||
clone_permissions=module.params['clone_permissions'],
|
clone_permissions=module.params['clone_permissions'],
|
||||||
|
|
Loading…
Reference in a new issue