Skip to content

Commit

Permalink
kubevirt_vm: rename parameters to template_parameters (ansible#54676)
Browse files Browse the repository at this point in the history
  • Loading branch information
machacekondra authored and ansibot committed Apr 1, 2019
1 parent 48ec8d1 commit f405d97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ansible/modules/cloud/kubevirt/kubevirt_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
description:
- "Template to used to create a virtual machine."
type: str
parameters:
template_parameters:
description:
- "Value of parameters to be replaced in template parameters."
type: dict
Expand Down Expand Up @@ -243,7 +243,7 @@
},
'datavolumes': {'type': 'list'},
'template': {'type': 'str'},
'parameters': {'type': 'dict'},
'template_parameters': {'type': 'dict'},
}


Expand Down Expand Up @@ -335,7 +335,7 @@ def execute_module(self):
proccess_template = template_resource.get(name=vm_template, namespace=self.params.get('namespace'))

# Set proper template values set by Ansible parameter 'parameters':
for k, v in self.params.get('parameters', {}).items():
for k, v in self.params.get('template_parameters', {}).items():
for parameter in proccess_template.parameters:
if parameter.name == k:
parameter.value = v
Expand Down

0 comments on commit f405d97

Please sign in to comment.