From: Dan van der Ster Date: Mon, 18 Dec 2017 12:53:20 +0000 (+0100) Subject: mgr/balancer: fix KeyError in balancer rm X-Git-Tag: v13.0.2~744^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=4f581e738ee7c9d519fc4113f6bb0d0d1ce827ff;p=ceph.git mgr/balancer: fix KeyError in balancer rm Fix the typo in the plan name which leads to a KeyError in balancer rm. Signed-off-by: Dan van der Ster Fixes: http://tracker.ceph.com/issues/22470 --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 762f02e71b464..0253de9245490 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -303,7 +303,7 @@ class Module(MgrModule): self.optimize(plan) return (0, '', '') elif command['prefix'] == 'balancer rm': - self.plan_rm(command['name']) + self.plan_rm(command['plan']) return (0, '', '') elif command['prefix'] == 'balancer reset': self.plans = {}