]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/notification: Fix the filter_rules to be array vs dict in json output.
authorkchheda3 <kchheda3@bloomberg.net>
Tue, 27 Feb 2024 20:59:15 +0000 (15:59 -0500)
committerkchheda3 <kchheda3@bloomberg.net>
Wed, 3 Apr 2024 17:49:26 +0000 (13:49 -0400)
commit48771fa0b799edf3f52989bb25b1c46d72b129f4
tree04a50eaf33c2aec7aee8862e63ae201f1290c3b5
parent0028525c15e19309c20289c609e4fb9d0b12dd06
rgw/notification: Fix the filter_rules to be array vs dict in json output.

FilterRules when processed as dict in json, emits samy key name for prefix, suffix causing failure while parsing the json notification output.
So change the type FilterRules from JsonDict to Array while dumping in json.

Signed-off-by: kchheda3 <kchheda3@bloomberg.net>
(cherry picked from commit 0c37788f18cd51a712a2481f8f58a7ee00d359ae)
src/rgw/rgw_pubsub.cc