From 99475261ef0482259473a40ca0830da4ca175f67 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Wed, 19 Nov 2014 18:14:52 +0100 Subject: [PATCH] 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) --- tasks/ceph_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/ceph_manager.py b/tasks/ceph_manager.py index 94f3683f4b72c..268fbbd6274a1 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 -- 2.39.5