From: Sage Weil Date: Tue, 18 Dec 2018 20:19:06 +0000 (-0600) Subject: pybind/mgr/mgr_module: set values as string X-Git-Tag: v14.1.0~532^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4872cc5aa32611e44705aebf93145a92d5df776a;p=ceph.git 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 --- diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index cec00ed8493a..3fdd46d50210 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -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): """