summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-05-11 12:23:40 +0200
committerGitHub <noreply@github.com>2017-05-11 12:23:40 +0200
commitf4e1e89f88c6885a6f0be0e7b3eca296d646502b (patch)
tree1a29e83128e038e0a859dafe6f47fba184fde70e /roles
parente149ad8185fdba2eb87282d05f4a24f3e4dd4f26 (diff)
downloadopenshift-f4e1e89f88c6885a6f0be0e7b3eca296d646502b.tar.gz
openshift-f4e1e89f88c6885a6f0be0e7b3eca296d646502b.tar.bz2
openshift-f4e1e89f88c6885a6f0be0e7b3eca296d646502b.tar.xz
openshift-f4e1e89f88c6885a6f0be0e7b3eca296d646502b.zip
Make class attribute name shorter
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_health_checker/openshift_checks/etcd_volume.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/etcd_volume.py b/roles/openshift_health_checker/openshift_checks/etcd_volume.py
index b52a9259f..df35ecb33 100644
--- a/roles/openshift_health_checker/openshift_checks/etcd_volume.py
+++ b/roles/openshift_health_checker/openshift_checks/etcd_volume.py
@@ -9,9 +9,9 @@ class EtcdVolume(OpenShiftCheck):
name = "etcd_volume"
tags = ["etcd", "health"]
- # pylint: disable=invalid-name
- default_etcd_device_usage_threshold_percent = 90
- # where to find ectd data, higher priority first.
+ # Default device usage threshold. Value should be in the range [0, 100].
+ default_threshold_percent = 90
+ # Where to find ectd data, higher priority first.
supported_mount_paths = ["/var/lib/etcd", "/var/lib", "/var", "/"]
@classmethod
@@ -29,7 +29,7 @@ class EtcdVolume(OpenShiftCheck):
threshold = get_var(
task_vars,
"etcd_device_usage_threshold_percent",
- default=self.default_etcd_device_usage_threshold_percent
+ default=self.default_threshold_percent
)
used_percent = 100.0 * used / total