]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/balancer: fix sanity check against empty weight-set 20278/head
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>
Sat, 3 Feb 2018 14:05:02 +0000 (22:05 +0800)
commitf10696e7e1026a7de434325fb2caebe23704db14
treebb80113541ff480c665a23869e8cdb9043a3e197
parent3ac57a7eb7690d7a16b6163741e95614bcdd3e16
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>
src/pybind/mgr/balancer/module.py