kubevirt_vm: Fix waiting for ephemral VM (#54453)

pull/54456/head
Ondra Machacek 6 years ago committed by ansibot
parent cf2f13e05d
commit d155e228af

@ -316,7 +316,7 @@ class KubeVirtVM(KubeVirtRawModule):
definition['spec']['running'] = state == 'running'
# Execute the CURD of VM:
template = definition['spec']['template']
template = definition if ephemeral else definition['spec']['template']
kind = 'VirtualMachineInstance' if ephemeral else 'VirtualMachine'
dummy, definition = self.construct_vm_definition(kind, definition, template)
result = self.execute_crud(kind, definition)

Loading…
Cancel
Save