package_version.py 744 B

123456789101112131415161718
  1. # pylint: disable=missing-docstring
  2. from openshift_checks import OpenShiftCheck, get_var
  3. from openshift_checks.mixins import NotContainerizedMixin
  4. class PackageVersion(NotContainerizedMixin, OpenShiftCheck):
  5. """Check that available RPM packages match the required versions."""
  6. name = "package_version"
  7. tags = ["preflight"]
  8. def run(self, tmp, task_vars):
  9. args = {
  10. "requested_openshift_release": get_var(task_vars, "openshift_release", default=''),
  11. "openshift_deployment_type": get_var(task_vars, "openshift_deployment_type"),
  12. "rpm_prefix": get_var(task_vars, "openshift", "common", "service_type"),
  13. }
  14. return self.execute_module("aos_version", args, tmp, task_vars)