]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: pubsub: dump topics as array
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 19 Oct 2018 22:23:57 +0000 (15:23 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 11 Dec 2018 09:00:21 +0000 (01:00 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_pubsub.cc

index 6b94a22a699feeea899c9b6b8c24fd311aba8379..e7e4fa09338a2b966d23655e5121daaf8f48d721 100644 (file)
@@ -35,7 +35,7 @@ void rgw_pubsub_topic_subs::dump(Formatter *f) const
 
 void rgw_pubsub_bucket_topics::dump(Formatter *f) const
 {
-  Formatter::ObjectSection s(*f, "topics");
+  Formatter::ArraySection s(*f, "topics");
   for (auto& t : topics) {
     encode_json(t.first.c_str(), t.second, f);
   }
@@ -43,7 +43,7 @@ void rgw_pubsub_bucket_topics::dump(Formatter *f) const
 
 void rgw_pubsub_user_topics::dump(Formatter *f) const
 {
-  Formatter::ObjectSection s(*f, "topics");
+  Formatter::ArraySection s(*f, "topics");
   for (auto& t : topics) {
     encode_json(t.first.c_str(), t.second, f);
   }