mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 04:40:22 -07:00
kubevirt_vm: Fix the default label (#54772)
This commit is contained in:
parent
e422f18898
commit
919b19f18d
2 changed files with 2 additions and 2 deletions
|
@ -346,7 +346,7 @@ class KubeVirtVM(KubeVirtRawModule):
|
|||
|
||||
template = definition if ephemeral else definition['spec']['template']
|
||||
kind = 'VirtualMachineInstance' if ephemeral else 'VirtualMachine'
|
||||
template['labels']['vm.cnv.io/name'] = self.params.get('name')
|
||||
template['metadata']['labels']['vm.cnv.io/name'] = self.params.get('name')
|
||||
dummy, definition = self.construct_vm_definition(kind, definition, template)
|
||||
definition = dict(self.merge_dicts(processedtemplate, definition))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue