blob: 7fa09cbfdc8c5e2620ac07b5b3728040a1d6e4be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# pylint: disable=missing-docstring
from openshift_checks import OpenShiftCheck, get_var
from openshift_checks.mixins import NotContainerized
class PackageVersion(NotContainerized, OpenShiftCheck):
"""Check that available RPM packages match the required versions."""
name = "package_version"
tags = ["preflight"]
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 = {
"prefix": rpm_prefix,
"version": openshift_release,
}
return self.module_executor("aos_version", args, tmp, task_vars)
|