]> git.apps.os.sepia.ceph.com Git - ceph-ci.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, 1 Feb 2018 08:37:41 +0000 (16:37 +0800)
Should pass in plan name instead of the plan itself.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/pybind/mgr/balancer/module.py

index f21805ba0e17cde787d87f5ca4636e3db041cefe..ea690155101dddc089276ba47070d522760c9f5c 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, '',