Skip to content

Commit dadcc88

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Fix an Ansible warning" into stable/victoria
2 parents dd28f0f + f196062 commit dadcc88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ansible/action_plugins/merge_yaml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def run(self, tmp=None, task_vars=None):
118118

119119
temp_vars = task_vars.copy()
120120
temp_vars.update(extra_vars)
121-
self._templar.set_available_variables(temp_vars)
121+
self._templar.available_variables = temp_vars
122122

123123
output = {}
124124
sources = self._task.args.get('sources', None)
@@ -130,7 +130,7 @@ def run(self, tmp=None, task_vars=None):
130130
output, self.read_config(source), extend_lists)
131131

132132
# restore original vars
133-
self._templar.set_available_variables(old_vars)
133+
self._templar.available_variables = old_vars
134134

135135
local_tempdir = tempfile.mkdtemp(dir=constants.DEFAULT_LOCAL_TMP)
136136

0 commit comments

Comments
 (0)