mirror of
https://github.com/ceph/ceph
synced 2025-03-29 23:09:47 +00:00
pybind/mgr/mgr_module: set values as string
The C++ code expects a string, and stores everything as a string, so just pass it in that way. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
2e8f9e6901
commit
4872cc5aa3
@ -746,7 +746,7 @@ class MgrModule(ceph_module.BaseMgrModule):
|
||||
return self._get_localized(key, default, self._get_module_option)
|
||||
|
||||
def _set_module_option(self, key, val):
|
||||
return self._ceph_set_module_option(key, val)
|
||||
return self._ceph_set_module_option(key, str(val))
|
||||
|
||||
def set_module_option(self, key, val):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user