kubevirt_pvc: fix parameter priority (#57617)

This commit is contained in:
Mariusz Mazur 2019-06-11 17:03:33 +02:00 committed by ansibot
parent 07e1bd8fe7
commit 1035a9aa49

View file

@ -437,7 +437,7 @@ class KubevirtPVC(KubernetesRawModule):
spec['volumeName'] = self.params.get('volume_name') spec['volumeName'] = self.params.get('volume_name')
# 'resource_definition:' has lower priority than module parameters # 'resource_definition:' has lower priority than module parameters
definition = dict(KubeVirtRawModule.merge_dicts(self.resource_definitions[0], definition)) definition = dict(KubeVirtRawModule.merge_dicts(definition, self.resource_definitions[0]))
self.client = self.get_api_client() self.client = self.get_api_client()
resource = self.find_resource(KIND, API, fail=True) resource = self.find_resource(KIND, API, fail=True)