mgr/balancer: fix KeyError in balancer rm

Fix the typo in the plan name which leads to a KeyError in balancer
rm.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
Fixes: http://tracker.ceph.com/issues/22470
This commit is contained in:
Dan van der Ster 2017-12-18 13:53:20 +01:00
parent 80c186f2d6
commit 4f581e738e

View File

@ -303,7 +303,7 @@ class Module(MgrModule):
self.optimize(plan)
return (0, '', '')
elif command['prefix'] == 'balancer rm':
self.plan_rm(command['name'])
self.plan_rm(command['plan'])
return (0, '', '')
elif command['prefix'] == 'balancer reset':
self.plans = {}