]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mgr/PyState.cc
update sources to v12.1.3
[ceph.git] / ceph / src / mgr / PyState.cc
index c8d3c73ff803fbe2d52fb3c0546cb237c19ec5b0..f03929102e4753ccad1c864bbe7c5375748763f0 100644 (file)
@@ -359,11 +359,14 @@ ceph_config_set(PyObject *self, PyObject *args)
   char *handle = nullptr;
   char *key = nullptr;
   char *value = nullptr;
-  if (!PyArg_ParseTuple(args, "sss:ceph_config_set", &handle, &key, &value)) {
+  if (!PyArg_ParseTuple(args, "ssz:ceph_config_set", &handle, &key, &value)) {
     return nullptr;
   }
-
-  global_handle->set_config(handle, key, value);
+  boost::optional<string> val;
+  if (value) {
+    val = value;
+  }
+  global_handle->set_config(handle, key, val);
 
   Py_RETURN_NONE;
 }