]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-deploy.git/commitdiff
improve status check documentation 178/head
authorAlfredo Deza <alfredo.deza@inktank.com>
Tue, 15 Apr 2014 15:54:53 +0000 (11:54 -0400)
committerAlfredo Deza <alfredo.deza@inktank.com>
Tue, 15 Apr 2014 15:54:53 +0000 (11:54 -0400)
Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
ceph_deploy/osd.py

index 9bc302fe49e5d552b736af4a572f4c3f2d53d273..c4c1638a9463b13315a5ca9744514914ef967a4d 100644 (file)
@@ -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!')