summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-08-31 15:03:13 +0200
committerGitHub <noreply@github.com>2017-08-31 15:03:13 +0200
commit404fe1f41182c5901287123da1fd1dc356d7686f (patch)
treefc60504e9a1a82f61b823a09db38c0ac92d86fdc
parent4436451212ce5d5cc43fcafee13ea7e344997f27 (diff)
parentce0dec20082fb591e98de1568420b26287f25881 (diff)
downloadopenshift-404fe1f41182c5901287123da1fd1dc356d7686f.tar.gz
openshift-404fe1f41182c5901287123da1fd1dc356d7686f.tar.bz2
openshift-404fe1f41182c5901287123da1fd1dc356d7686f.tar.xz
openshift-404fe1f41182c5901287123da1fd1dc356d7686f.zip
Merge pull request #5271 from sosiouxme/20170830-disk-avail-bug
disk_availability: fix bug where msg is overwritten
-rw-r--r--roles/openshift_health_checker/openshift_checks/disk_availability.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/disk_availability.py b/roles/openshift_health_checker/openshift_checks/disk_availability.py
index 6d1dea9ce..f302fd14b 100644
--- a/roles/openshift_health_checker/openshift_checks/disk_availability.py
+++ b/roles/openshift_health_checker/openshift_checks/disk_availability.py
@@ -115,10 +115,7 @@ class DiskAvailability(OpenShiftCheck):
return {
'failed': True,
- 'msg': (
- 'Available disk space in "{}" ({:.1f} GB) '
- 'is below minimum recommended ({:.1f} GB)'
- ).format(path, free_gb, recommended_gb)
+ 'msg': msg,
}
return {}