mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
kubevirt: Fix labels assignemt (#54852)
This commit is contained in:
parent
5f69ab7f46
commit
97f706810c
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ class KubeVirtRawModule(KubernetesRawModule):
|
|||
template_spec['domain']['cpu']['model'] = cpu_model
|
||||
|
||||
if labels:
|
||||
self.merge_dicts(template['metadata']['labels'], labels)
|
||||
template['metadata']['labels'] = dict(self.merge_dicts(labels, template['metadata']['labels']))
|
||||
|
||||
if machine_type:
|
||||
template_spec['domain']['machine']['type'] = machine_type
|
||||
|
|
Loading…
Reference in a new issue