From: xie xingguo Date: Thu, 1 Feb 2018 07:48:53 +0000 (+0800) Subject: pybind/mgr/balancer: remove optimization plan properly X-Git-Tag: v12.2.5~81^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1f26830bd1abd7cde19dc2e0e75560af1698a902;p=ceph.git 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) --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 3b5d7f937903..4b85d65014ff 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, '',