]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_manager: add pool type constants
authorLoic Dachary <ldachary@redhat.com>
Wed, 19 Nov 2014 17:14:52 +0000 (18:14 +0100)
committerDavid Zafman <dzafman@redhat.com>
Wed, 4 Mar 2015 00:03:59 +0000 (16:03 -0800)
The osd dump command displays pool types using numerics instead of
symbolic names. Create constants in the CephManager class to use instead
of numbers.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
(cherry picked from commit b925be13bc1183b2a8f68fd59d7fcb59330d1404)

tasks/ceph_manager.py

index 94f3683f4b72c3f385f70962cd51bb9b24736bca..268fbbd6274a1595b1b55521bb5713ab1cc736cd 100644 (file)
@@ -520,6 +520,10 @@ class CephManager:
     Ceph manager object.
     Contains several local functions that form a bulk of this module.
     """
+
+    REPLICATED_POOL = 1
+    ERASURE_CODED_POOL = 3
+
     def __init__(self, controller, ctx=None, config=None, logger=None):
         self.lock = threading.RLock()
         self.ctx = ctx