1
0
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:
Sage Weil 2018-12-18 14:19:06 -06:00
parent 2e8f9e6901
commit 4872cc5aa3

View File

@ -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):
"""