]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/balancer: cast config vals to int or float 19553/head
authorDan van der Ster <daniel.vanderster@cern.ch>
Wed, 13 Dec 2017 16:02:44 +0000 (17:02 +0100)
committerShinobu Kinjo <shinobu@redhat.com>
Fri, 15 Dec 2017 20:20:23 +0000 (05:20 +0900)
commitc5cb0cab9f307f5bd1b58ce94b0a9e1fb510db9e
tree2e90ac99cb0335480d873e40fa8d76b19f853bc3
parentb3fd46810c01be00ebf26b9893d8bab107ee93f2
mgr/balancer: cast config vals to int or float

upmap_max_iterations and other config vals need to be numeric.
Cast them appropriately.

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
Fixes: http://tracker.ceph.com/issues/22429
(cherry picked from commit d7713e6f823dd62a33a27996e1da8e29f3f7b7c5)
src/pybind/mgr/balancer/module.py