]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: handle "module.set_config(.., None)" correctly
authorKefu Chai <kchai@redhat.com>
Wed, 2 Aug 2017 10:18:02 +0000 (18:18 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 2 Aug 2017 10:18:08 +0000 (18:18 +0800)
commit868420e4219fd11ef12f713c0378a6565f36f1d3
treeee054ed50564d923b3caf3b6aa88dfeb488d9407
parent901f14aa7c62ae16072239202a1a9b8329ef3c84
mgr: handle "module.set_config(.., None)" correctly

otherwise "ceph restful delete-key foo" would fail:

TypeError: ceph_config_set() argument 3 must be string, not None

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mgr/PyModules.cc
src/mgr/PyModules.h
src/mgr/PyState.cc