]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
RGW: notification | hide auto generated topics when listing topics 51138/head
authorAli Masarwa <ali.saed.masarwa@gmail.com>
Tue, 18 Apr 2023 11:49:55 +0000 (14:49 +0300)
committerAli Masarwa <ali.saed.masarwa@gmail.com>
Wed, 19 Apr 2023 10:32:24 +0000 (13:32 +0300)
Signed-off-by: Ali Masarwa <ali.saed.masarwa@gmail.com>
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);
+    }
   }
 }