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