Explorar o código

disk_availability: fix bug where msg is overwritten

Luke Meyer %!s(int64=7) %!d(string=hai) anos
pai
achega
ce0dec2008

+ 1 - 4
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 {}