From: xie xingguo Date: Thu, 1 Feb 2018 07:48:53 +0000 (+0800) Subject: pybind/mgr/balancer: remove optimization plan properly X-Git-Tag: v13.0.2~367^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F20224%2Fhead;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 --- diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index f21805ba0e1..ea690155101 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, '',