From: Radoslaw Zarzynski Date: Mon, 20 Apr 2015 12:55:00 +0000 (+0200) Subject: rgw: fix lack of account name in XML listing of Swift account. X-Git-Tag: v0.94.3~11^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F5227%2Fhead;p=ceph.git rgw: fix lack of account name in XML listing of Swift account. Fixes: #11431 Backport: hammer Signed-off-by: Radoslaw Zarzynski (cherry picked from commit 837388bbc39a1bf9019302c3a4d3a3fe22caeeb4) --- diff --git a/src/rgw/rgw_rest_swift.cc b/src/rgw/rgw_rest_swift.cc index 427ee5b17495..9513cd612862 100644 --- a/src/rgw/rgw_rest_swift.cc +++ b/src/rgw/rgw_rest_swift.cc @@ -58,7 +58,8 @@ void RGWListBuckets_ObjStore_SWIFT::send_response_begin(bool has_buckets) if (!ret) { dump_start(s); - s->formatter->open_array_section("account"); + s->formatter->open_array_section_with_attrs("account", + FormatterAttrs("name", s->user.display_name.c_str(), NULL)); sent_data = true; }