From b1410d084a81f48e1414b427d2e688fc862fe934 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 15 Apr 2014 11:54:53 -0400 Subject: [PATCH] improve status check documentation Signed-off-by: Alfredo Deza --- ceph_deploy/osd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ceph_deploy/osd.py b/ceph_deploy/osd.py index 9bc302f..c4c1638 100644 --- a/ceph_deploy/osd.py +++ b/ceph_deploy/osd.py @@ -65,8 +65,10 @@ def osd_status_check(conn, cluster): "full": "false", "nearfull": "false" } + + Note how the booleans are actually strings, so we need to take that into + account and fix it before returning the dictionary. Issue #8108 """ - logger = conn.logger command = [ 'ceph', '--cluster={cluster}'.format(cluster=cluster), @@ -125,6 +127,7 @@ def catch_osd_errors(conn, logger, args): if full: logger.warning('OSDs are full!') + if nearfull: logger.warning('OSDs are near full!') -- 2.47.3