diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-01-31 18:15:19 +0100 |
---|---|---|
committer | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-02-10 14:46:40 +0100 |
commit | c838e0f0b79b1471c47addf50c46fdb12281812c (patch) | |
tree | f677cb7bc70bb42167264b88f6ca1103ca370a71 /roles/openshift_health_checker/openshift_checks/__init__.py | |
parent | bb38413fcec7fb2640939782d57e494b40e3b41e (diff) | |
download | openshift-c838e0f0b79b1471c47addf50c46fdb12281812c.tar.gz openshift-c838e0f0b79b1471c47addf50c46fdb12281812c.tar.bz2 openshift-c838e0f0b79b1471c47addf50c46fdb12281812c.tar.xz openshift-c838e0f0b79b1471c47addf50c46fdb12281812c.zip |
Introduce tag notation for checks
This allows us to refer to a group of checks using a single handle.
Diffstat (limited to 'roles/openshift_health_checker/openshift_checks/__init__.py')
-rw-r--r-- | roles/openshift_health_checker/openshift_checks/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/__init__.py b/roles/openshift_health_checker/openshift_checks/__init__.py index d893ba591..ff99e7b4c 100644 --- a/roles/openshift_health_checker/openshift_checks/__init__.py +++ b/roles/openshift_health_checker/openshift_checks/__init__.py @@ -26,6 +26,15 @@ class OpenShiftCheck(object): """The name of this check, usually derived from the class name.""" return "openshift_check" + @property + def tags(self): + """A list of tags that this check satisfy. + + Tags are used to reference multiple checks with a single '@tagname' + special check name. + """ + return [] + @classmethod def is_active(cls, task_vars): # pylint: disable=unused-argument """Returns true if this check applies to the ansible-playbook run.""" |