]> git.apps.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)
committerLoic Dachary <ldachary@redhat.com>
Thu, 20 Nov 2014 21:38:25 +0000 (22:38 +0100)
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>
tasks/ceph_manager.py

index 2216d5912e2275c9ede70bfacc21f231d6464ae2..1de92796085af692c2b3830d6a1a7aab0c4c6f91 100644 (file)
@@ -521,6 +521,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