diff options
author | Yehuda Sadeh <yehuda@inktank.com> | 2013-05-14 12:25:17 -0700 |
---|---|---|
committer | Yehuda Sadeh <yehuda@inktank.com> | 2013-05-14 12:25:17 -0700 |
commit | 67ecd75c84c5a7abea3d6b4203739668e0d1b3e3 (patch) | |
tree | 9a94350e99d85fa1495c0688fc2089750dfb8639 | |
parent | 97a73091b47f06bf02d216949b38045bd8117016 (diff) | |
download | ceph-67ecd75c84c5a7abea3d6b4203739668e0d1b3e3.tar.gz |
rgw: json_encode json a bit differently
Encode map as a list, it's a more friendly representation.
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r-- | src/rgw/rgw_json_enc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_json_enc.cc b/src/rgw/rgw_json_enc.cc index 2094b5cb372..7426e33102b 100644 --- a/src/rgw/rgw_json_enc.cc +++ b/src/rgw/rgw_json_enc.cc @@ -507,7 +507,7 @@ void RGWRegion::dump(Formatter *f) const encode_json("is_master", is_master, f); encode_json("endpoints", endpoints, f); encode_json("master_zone", master_zone, f); - encode_json("zones", zones, f); + encode_json_map("zones", zones, f); /* more friendly representation */ } static void decode_zones(map<string, RGWZone>& zones, JSONObj *o) |