summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker
diff options
context:
space:
mode:
authorOpenShift Bot <eparis+openshiftbot@redhat.com>2017-06-30 17:06:41 -0400
committerGitHub <noreply@github.com>2017-06-30 17:06:41 -0400
commit3d74a28885d156cf86ce96b935432fd90b2ae00c (patch)
treec3c0e6392315eaa7ffa975f898212f9252870053 /roles/openshift_health_checker
parent31005495f571e02c671b90d2b4c0bb2d57fe4457 (diff)
parent055f7182b78feb29909539fca86e1ef55d1fc7db (diff)
downloadopenshift-3d74a28885d156cf86ce96b935432fd90b2ae00c.tar.gz
openshift-3d74a28885d156cf86ce96b935432fd90b2ae00c.tar.bz2
openshift-3d74a28885d156cf86ce96b935432fd90b2ae00c.tar.xz
openshift-3d74a28885d156cf86ce96b935432fd90b2ae00c.zip
Merge pull request #4607 from sosiouxme/20170627-docker-storage-vgs-units
Merged by openshift-bot
Diffstat (limited to 'roles/openshift_health_checker')
-rw-r--r--roles/openshift_health_checker/openshift_checks/docker_storage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/docker_storage.py b/roles/openshift_health_checker/openshift_checks/docker_storage.py
index 2bd615457..8d0fbcc9c 100644
--- a/roles/openshift_health_checker/openshift_checks/docker_storage.py
+++ b/roles/openshift_health_checker/openshift_checks/docker_storage.py
@@ -143,7 +143,7 @@ class DockerStorage(DockerHostMixin, OpenShiftCheck):
"so the available storage in the VG cannot be determined.".format(pool)
)
vg_name = match.groups()[0].replace("--", "-")
- vgs_cmd = "/sbin/vgs --noheadings -o vg_free --select vg_name=" + vg_name
+ vgs_cmd = "/sbin/vgs --noheadings -o vg_free --units g --select vg_name=" + vg_name
# should return free space like " 12.00g" if the VG exists; empty if it does not
ret = self.execute_module("command", {"_raw_params": vgs_cmd}, task_vars=task_vars)