From: Loic Dachary Date: Wed, 19 Nov 2014 17:14:52 +0000 (+0100) Subject: ceph_manager: add pool type constants X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=99475261ef0482259473a40ca0830da4ca175f67;p=ceph.git ceph_manager: add pool type constants 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 (cherry picked from commit b925be13bc1183b2a8f68fd59d7fcb59330d1404) --- diff --git a/tasks/ceph_manager.py b/tasks/ceph_manager.py index 94f3683f4b72..268fbbd6274a 100644 --- a/tasks/ceph_manager.py +++ b/tasks/ceph_manager.py @@ -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