diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-07-26 14:37:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-26 14:37:52 -0400 |
commit | f91b0fc1aca24e551b80d0e81f098fc35793bb16 (patch) | |
tree | 12f8df434756e561c6627142f381c4c348de3607 /roles/openshift_health_checker/library | |
parent | cff5116a1dae3c6b44afa59ae5fd08b398873945 (diff) | |
parent | 210fc2d3849a1baf9c1d8535044d92df23424274 (diff) | |
download | openshift-f91b0fc1aca24e551b80d0e81f098fc35793bb16.tar.gz openshift-f91b0fc1aca24e551b80d0e81f098fc35793bb16.tar.bz2 openshift-f91b0fc1aca24e551b80d0e81f098fc35793bb16.tar.xz openshift-f91b0fc1aca24e551b80d0e81f098fc35793bb16.zip |
Merge pull request #4485 from sosiouxme/20170616-store-args-in-check-properties
openshift_checks: store args in check properties
Diffstat (limited to 'roles/openshift_health_checker/library')
-rw-r--r--[-rwxr-xr-x] | roles/openshift_health_checker/library/aos_version.py | 6 | ||||
-rw-r--r--[-rwxr-xr-x] | roles/openshift_health_checker/library/check_yum_update.py | 0 | ||||
-rw-r--r-- | roles/openshift_health_checker/library/docker_info.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/roles/openshift_health_checker/library/aos_version.py b/roles/openshift_health_checker/library/aos_version.py index 4f43ee751..f9babebb9 100755..100644 --- a/roles/openshift_health_checker/library/aos_version.py +++ b/roles/openshift_health_checker/library/aos_version.py @@ -1,5 +1,5 @@ #!/usr/bin/python -''' +""" Ansible module for yum-based systems determining if multiple releases of an OpenShift package are available, and if the release requested (if any) is available down to the given precision. @@ -16,7 +16,7 @@ of release availability already. Without duplicating all that, we would like the user to have a helpful error message if we detect things will not work out right. Note that if openshift_release is not specified in the inventory, the version comparison checks just pass. -''' +""" from ansible.module_utils.basic import AnsibleModule # NOTE: because of the dependency on yum (Python 2-only), this module does not @@ -32,7 +32,7 @@ except ImportError as err: class AosVersionException(Exception): - '''Base exception class for package version problems''' + """Base exception class for package version problems""" def __init__(self, message, problem_pkgs=None): Exception.__init__(self, message) self.problem_pkgs = problem_pkgs diff --git a/roles/openshift_health_checker/library/check_yum_update.py b/roles/openshift_health_checker/library/check_yum_update.py index 433795b67..433795b67 100755..100644 --- a/roles/openshift_health_checker/library/check_yum_update.py +++ b/roles/openshift_health_checker/library/check_yum_update.py diff --git a/roles/openshift_health_checker/library/docker_info.py b/roles/openshift_health_checker/library/docker_info.py index 7f712bcff..0d0ddae8b 100644 --- a/roles/openshift_health_checker/library/docker_info.py +++ b/roles/openshift_health_checker/library/docker_info.py @@ -1,4 +1,3 @@ -# pylint: disable=missing-docstring """ Ansible module for determining information about the docker host. @@ -13,6 +12,7 @@ from ansible.module_utils.docker_common import AnsibleDockerClient def main(): + """Entrypoint for running an Ansible module.""" client = AnsibleDockerClient() client.module.exit_json( |