From 4f581e738ee7c9d519fc4113f6bb0d0d1ce827ff Mon Sep 17 00:00:00 2001 From: Dan van der Ster Date: Mon, 18 Dec 2017 13:53:20 +0100 Subject: [PATCH] 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 --- src/pybind/mgr/balancer/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def handle_command(self, command): 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 = {}