]> 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:27:53 +0000 (09:27 +0300)
commit0ab3058f7b3a394b5f1995d0484fb57ac438fd62
tree9d61830e1ed226751cf82e53fa4afc950221b399
parent15ec48139dc9e86636331e03e2e37ef9e7886559
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