kubevirt_vm: Fix waiting for ephemral VM (#54453)
This commit is contained in:
parent
cf2f13e05d
commit
d155e228af
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue