mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
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:
parent
80c186f2d6
commit
4f581e738e
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user