Skip to content

Commit

Permalink
kubevirt_vm: Fix waiting for ephemral VM (ansible#54453)
Browse files Browse the repository at this point in the history
  • Loading branch information
machacekondra authored and ansibot committed Mar 27, 2019
1 parent cf2f13e commit d155e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/cloud/kubevirt/kubevirt_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def execute_module(self):
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)
Expand Down

0 comments on commit d155e22

Please sign in to comment.