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