From ce0dec20082fb591e98de1568420b26287f25881 Mon Sep 17 00:00:00 2001 From: Luke Meyer Date: Mon, 28 Aug 2017 20:45:08 -0400 Subject: disk_availability: fix bug where msg is overwritten --- roles/openshift_health_checker/openshift_checks/disk_availability.py | 5 +---- 1 file changed, 1 insertion(+), 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 {} -- cgit v1.2.3