From 1f26830bd1abd7cde19dc2e0e75560af1698a902 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Thu, 1 Feb 2018 15:48:53 +0800 Subject: [PATCH] pybind/mgr/balancer: remove optimization plan properly Should pass in plan name instead of the plan itself. Signed-off-by: xie xingguo (cherry picked from commit 95901732420ce7c260d76af4ea0f23a9b288a849) --- 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 3b5d7f9379035..4b85d65014ffa 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -334,7 +334,7 @@ class Module(MgrModule): if not plan: return (-errno.ENOENT, '', 'plan %s not found' % command['plan']) self.execute(plan) - self.plan_rm(plan) + self.plan_rm(command['plan']) return (0, '', '') else: return (-errno.EINVAL, '', -- 2.39.5