summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/openshift_checks/__init__.py
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-01-31 18:15:19 +0100
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-10 14:46:40 +0100
commitc838e0f0b79b1471c47addf50c46fdb12281812c (patch)
treef677cb7bc70bb42167264b88f6ca1103ca370a71 /roles/openshift_health_checker/openshift_checks/__init__.py
parentbb38413fcec7fb2640939782d57e494b40e3b41e (diff)
downloadopenshift-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__.py9
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."""