From: Ali Masarwa Date: Tue, 18 Apr 2023 11:49:55 +0000 (+0300) Subject: RGW: notification | hide auto generated topics when listing topics X-Git-Tag: v18.2.1~247^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F53507%2Fhead;p=ceph.git RGW: notification | hide auto generated topics when listing topics Signed-off-by: Ali Masarwa (cherry picked from commit 1186c477fbafc2e96d903e73349deebbd0b94ab7) --- diff --git a/src/rgw/rgw_pubsub.cc b/src/rgw/rgw_pubsub.cc index 6ebd87e3fe43..f00a6a1de860 100644 --- a/src/rgw/rgw_pubsub.cc +++ b/src/rgw/rgw_pubsub.cc @@ -359,7 +359,10 @@ void rgw_pubsub_topics::dump(Formatter *f) const { Formatter::ArraySection s(*f, "topics"); for (auto& t : topics) { - encode_json(t.first.c_str(), t.second, f); + auto& topic = t.second; + if (topic.name == topic.dest.arn_topic) { + encode_json(t.first.c_str(), topic, f); + } } }