Merge pull request #19578 from cernceph/dvanders_brm

mgr/balancer: fix KeyError in balancer rm

Reviewed-by: John Spray <john.spray@redhat.com>
This commit is contained in:
John Spray 2017-12-19 11:40:33 +00:00 committed by GitHub
commit dc236764ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = {}