summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/openshift_checks/etcd_volume.py
diff options
context:
space:
mode:
authorLuke Meyer <lmeyer@redhat.com>2017-10-04 09:00:17 -0400
committerLuke Meyer <lmeyer@redhat.com>2017-10-04 10:53:21 -0400
commit7edc17b56309d259634331527bf5f343f45baeaf (patch)
treeddece59d770d248295e792f905c58b54e04303d7 /roles/openshift_health_checker/openshift_checks/etcd_volume.py
parenta25709a6f16913b59ef2edc3e07d8bc8a598f41e (diff)
downloadopenshift-7edc17b56309d259634331527bf5f343f45baeaf.tar.gz
openshift-7edc17b56309d259634331527bf5f343f45baeaf.tar.bz2
openshift-7edc17b56309d259634331527bf5f343f45baeaf.tar.xz
openshift-7edc17b56309d259634331527bf5f343f45baeaf.zip
openshift_checks: use oo group names everywhere
Diffstat (limited to 'roles/openshift_health_checker/openshift_checks/etcd_volume.py')
-rw-r--r--roles/openshift_health_checker/openshift_checks/etcd_volume.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/etcd_volume.py b/roles/openshift_health_checker/openshift_checks/etcd_volume.py
index 79955cb2f..3d75da6f9 100644
--- a/roles/openshift_health_checker/openshift_checks/etcd_volume.py
+++ b/roles/openshift_health_checker/openshift_checks/etcd_volume.py
@@ -15,7 +15,11 @@ class EtcdVolume(OpenShiftCheck):
etcd_mount_path = "/var/lib/etcd"
def is_active(self):
- etcd_hosts = self.get_var("groups", "etcd", default=[]) or self.get_var("groups", "masters", default=[]) or []
+ etcd_hosts = (
+ self.get_var("groups", "oo_etcd_to_config", default=[]) or
+ self.get_var("groups", "oo_masters_to_config", default=[]) or
+ []
+ )
is_etcd_host = self.get_var("ansible_host") in etcd_hosts
return super(EtcdVolume, self).is_active() and is_etcd_host