]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/mgr/balancer: remove optimization plan properly
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 1 Feb 2018 07:48:53 +0000 (15:48 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 8 Feb 2018 05:41:02 +0000 (13:41 +0800)
Should pass in plan name instead of the plan itself.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 95901732420ce7c260d76af4ea0f23a9b288a849)

src/pybind/mgr/balancer/module.py

index 3b5d7f9379035dd35bac7b4997b6a4655b9030a9..4b85d65014ffa7223c06ec8c6a0d67c0640838ba 100644 (file)
@@ -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, '',