]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/deepsea: use empty strings rather than None for option defaults
authorTim Serong <tserong@suse.com>
Thu, 14 Mar 2019 10:10:38 +0000 (21:10 +1100)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 2 Apr 2019 14:24:38 +0000 (16:24 +0200)
commit4e44edd9cea1afe8494f43395b3af125e8dd4684
tree664b1ce67f428b44d923e8f10b2480cad7e07dcb
parente6143dd0cdb9899f5e76c6c6f3cbc99cc36637a4
mgr/deepsea: use empty strings rather than None for option defaults

This makes the _config_valid() function work properly; the option
defaults are being strinified somewhere, so we need to use empty
strings rather than None (which becomes "None"), in order to check
if they're set or not.

Signed-off-by: Tim Serong <tserong@suse.com>
(cherry picked from commit e81f109bf93317b998d3ea31d64381d9f491a6ef)
src/pybind/mgr/deepsea/module.py