diff --git a/src/pybind/mgr/balancer/module.py b/src/pybind/mgr/balancer/module.py index 762f02e71b4..0253de92454 100644 --- a/src/pybind/mgr/balancer/module.py +++ b/src/pybind/mgr/balancer/module.py @@ -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 = {}