diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-02-06 13:53:38 +0100 |
---|---|---|
committer | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-02-10 19:49:01 +0100 |
commit | c24b9acb9d04f9613dcc7423791d09f83ef03670 (patch) | |
tree | e30620215de9d7e7bea0377b89769210bec079c8 /roles/openshift_health_checker/openshift_checks | |
parent | f502b09c103b5d8681854b7ab6a3c9655311f73b (diff) | |
download | openshift-c24b9acb9d04f9613dcc7423791d09f83ef03670.tar.gz openshift-c24b9acb9d04f9613dcc7423791d09f83ef03670.tar.bz2 openshift-c24b9acb9d04f9613dcc7423791d09f83ef03670.tar.xz openshift-c24b9acb9d04f9613dcc7423791d09f83ef03670.zip |
Do not hard code package names
Diffstat (limited to 'roles/openshift_health_checker/openshift_checks')
-rw-r--r-- | roles/openshift_health_checker/openshift_checks/package_version.py | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/package_version.py b/roles/openshift_health_checker/openshift_checks/package_version.py index b31b4d401..7fa09cbfd 100644 --- a/roles/openshift_health_checker/openshift_checks/package_version.py +++ b/roles/openshift_health_checker/openshift_checks/package_version.py @@ -9,15 +9,12 @@ class PackageVersion(NotContainerized, OpenShiftCheck): name = "package_version" tags = ["preflight"] - @classmethod - def is_active(cls, task_vars): - return ( - super(PackageVersion, cls).is_active(task_vars) - and task_vars.get("deployment_type") == "openshift-enterprise" - ) - def run(self, tmp, task_vars): + rpm_prefix = get_var(task_vars, "openshift", "common", "service_type") openshift_release = get_var(task_vars, "openshift_release") - args = {"version": openshift_release} + args = { + "prefix": rpm_prefix, + "version": openshift_release, + } return self.module_executor("aos_version", args, tmp, task_vars) |