]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/balancer: fix sanity check against empty weight-set
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 3 Feb 2018 14:05:02 +0000 (22:05 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Thu, 8 Feb 2018 05:41:16 +0000 (13:41 +0800)
commitc3d1d2d9197e9bd2529f6802b58288069fa675d5
tree9c5795ed0cda5f399fbeadd140b09e94735141a4
parent1f26830bd1abd7cde19dc2e0e75560af1698a902
pybind/mgr/balancer: fix sanity check against empty weight-set

There are paths get_compat_weight_set_weights() will return a
empty dict, not None.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit f10696e7e1026a7de434325fb2caebe23704db14)
src/pybind/mgr/balancer/module.py