From b925be13bc1183b2a8f68fd59d7fcb59330d1404 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 --- tasks/ceph_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/ceph_manager.py b/tasks/ceph_manager.py index 2216d5912e227..1de92796085af 100644 --- a/tasks/ceph_manager.py +++ b/tasks/ceph_manager.py @@ -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 -- 2.39.5