]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW: notification | hide auto generated topics when listing topics 53507/head
authorAli Masarwa <ali.saed.masarwa@gmail.com>
Tue, 18 Apr 2023 11:49:55 +0000 (14:49 +0300)
committerYuval Lifshitz <ylifshit@redhat.com>
Mon, 18 Sep 2023 15:42:25 +0000 (15:42 +0000)
Signed-off-by: Ali Masarwa <ali.saed.masarwa@gmail.com>
(cherry picked from commit 1186c477fbafc2e96d903e73349deebbd0b94ab7)

src/rgw/rgw_pubsub.cc

index 6ebd87e3fe434ff574e5d2f989c31fcb554aa473..f00a6a1de860e8cf26992998255af736f865cea4 100644 (file)
@@ -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);
+    }
   }
 }