]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/ConfigMonitor: fix config get key with whitespaces
authorNitzan Mordechai <nmordech@redhat.com>
Wed, 19 Jan 2022 09:36:31 +0000 (03:36 -0600)
committerNitzan Mordechai <nmordech@redhat.com>
Mon, 1 Aug 2022 06:29:31 +0000 (09:29 +0300)
commitd5d64ed4884911738a7263c4696e1c1d39dc7647
tree1801b8d6a157ec8f0767c7b628293f2e002b2176
parent626dc8e801a2199309d926f8b7f7c451c3ca9a7f
mon/ConfigMonitor: fix config get key with whitespaces

Currently, a config-set\get\rm command does not handle keys with blanks.

Here - we normalize the keys, replacing spaces with underscores.

Fixes: https://tracker.ceph.com/issues/44092
Signed-off-by: Nitzan Mordechai <nmordech@redhat.com>
(cherry picked from commit 94cac0795f64751b9e37d4e025b0c0f41b82fd39)
src/mon/ConfigMonitor.cc