]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/config: trim whitespace in config target 69802/head
authorNitzan Mordechai <nmordech@ibm.com>
Tue, 23 Jun 2026 10:23:54 +0000 (10:23 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Mon, 29 Jun 2026 09:16:15 +0000 (12:16 +0300)
commit643a7419b4a565a248ad65ab55df06780ca5bea3
tree63490a334545f629a587a01c51d47045c8f1cafb
parent7583396b95bbdf8f4ee48f99d9d250c7486f97bc
mon/config: trim whitespace in config target

When set\get\rm config values with leading or trailing spaces,
those spaces need to be removed before we are trying to get\set\rm
those keys.
add trim code before each approch and also for exist keys in config.

Fixes: https://tracker.ceph.com/issues/77598
Signed-off-by: Nitzan Mordechai <nmordech@ibm.com>
(cherry picked from commit cab98604fadb8bdc30d27188c44b313e12568d97)
qa/workunits/mon/config.sh
src/mon/ConfigMap.cc
src/mon/ConfigMonitor.cc
src/test/mon/test_config_map.cc