From: Yehuda Sadeh Date: Fri, 19 Oct 2018 22:23:57 +0000 (-0700) Subject: rgw: pubsub: dump topics as array X-Git-Tag: v14.1.0~616^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4b028157f8ca1d54af5286783adb5b16e3ccc9ee;p=ceph.git rgw: pubsub: dump topics as array Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_pubsub.cc b/src/rgw/rgw_pubsub.cc index 6b94a22a699f..e7e4fa09338a 100644 --- a/src/rgw/rgw_pubsub.cc +++ b/src/rgw/rgw_pubsub.cc @@ -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); }