Skip to content

Commit

Permalink
pybind/mgr/balancer: remove optimization plan properly
Browse files Browse the repository at this point in the history
Should pass in plan name instead of the plan itself.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 9590173)
  • Loading branch information
xiexingguo committed Feb 8, 2018
1 parent 49f6b4f commit 1f26830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pybind/mgr/balancer/module.py
Expand Up @@ -334,7 +334,7 @@ def handle_command(self, command):
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, '',
Expand Down

0 comments on commit 1f26830

Please sign in to comment.