mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 11:43:10 +00:00
ovirt_vms: Pass correct VM entity to create method (#37249)
This commit is contained in:
@@ -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'],
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user