summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/action_plugins
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-10-17 11:50:21 -0400
committerMichael Gugino <mgugino@redhat.com>2017-10-17 15:15:14 -0400
commit23b37a72ef60e7d7830321ba65c5e98bf9563232 (patch)
tree0ab5f53d14206889dfc9a20f99b26562962604d6 /roles/openshift_health_checker/action_plugins
parent1d75eb325c0dbfd4614ab6e6535d07a2ea3ecbc3 (diff)
downloadopenshift-23b37a72ef60e7d7830321ba65c5e98bf9563232.tar.gz
openshift-23b37a72ef60e7d7830321ba65c5e98bf9563232.tar.bz2
openshift-23b37a72ef60e7d7830321ba65c5e98bf9563232.tar.xz
openshift-23b37a72ef60e7d7830321ba65c5e98bf9563232.zip
Ensure proper variable templating for skopeo auth credentials
Currently, docker_image_availability.py plugin check is using the raw strings for variables from task_vars. This results in any variables that utilized within the plugin to be un-templated. For instance, if variable "x" is set to "{{ y }}" and y is set to "2", one would expect that x == 2 inside the plugin. Currently, the plugin will use the string "{{ y }}" for the value of x instead of templating the variable. This commit ensures skopeo registry auth credentials are templated properly. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1500698
Diffstat (limited to 'roles/openshift_health_checker/action_plugins')
-rw-r--r--roles/openshift_health_checker/action_plugins/openshift_health_check.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/openshift_health_checker/action_plugins/openshift_health_check.py b/roles/openshift_health_checker/action_plugins/openshift_health_check.py
index 326176273..3ee3b132c 100644
--- a/roles/openshift_health_checker/action_plugins/openshift_health_check.py
+++ b/roles/openshift_health_checker/action_plugins/openshift_health_check.py
@@ -101,7 +101,8 @@ class ActionModule(ActionBase):
execute_module=self._execute_module,
tmp=tmp,
task_vars=task_vars,
- want_full_results=want_full_results
+ want_full_results=want_full_results,
+ templar=self._templar
)
return known_checks