Browse Source

SDN check: Expand openshift_client_binary variable

Expand the openshift_client_binary variable in case it is a template.

This commit is a follow-up to commit 32366cb918faf27564e442b0795669a169841df9.

This commit fixes bug 1615705.

https://bugzilla.redhat.com/show_bug.cgi?id=1615705#c8

* roles/openshift_health_checker/openshift_checks/sdn.py (SDNCheck.run):
Expand the openshift_client_binary variable using the template_var method.
Miciah Masters 6 years ago
parent
commit
d2a8a34392
1 changed files with 1 additions and 0 deletions
  1. 1 0
      roles/openshift_health_checker/openshift_checks/sdn.py

+ 1 - 0
roles/openshift_health_checker/openshift_checks/sdn.py

@@ -60,6 +60,7 @@ class SDNCheck(OpenShiftCheck):
                                              ['/bin/docker', 'version'])
                 oc_executable = self.get_var('openshift_client_binary',
                                              default='/bin/oc')
+                oc_executable = self.template_var(oc_executable)
                 self.save_command_output('oc-version', [oc_executable,
                                                         'version'])
                 self.register_file('os-version', None,