mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-31 15:53:09 +00:00
kubevirt: Fix labels assignemt (#54852)
This commit is contained in:
committed by
René Moser
parent
5f69ab7f46
commit
97f706810c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user