1
0
Fork 0
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:
Ondra Machacek 2019-04-09 18:58:44 +02:00 committed by René Moser
parent 5f69ab7f46
commit 97f706810c

View file

@ -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