Skip to content

Commit

Permalink
Merge pull request #5227: RGW Swift API: XML document generated in re…
Browse files Browse the repository at this point in the history
…sponse for GET on account does not contain account name

Reviewed-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
ldachary committed Jul 19, 2015
2 parents 441cffc + b1618a9 commit ebc78ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rgw/rgw_rest_swift.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ebc78ca

Please sign in to comment.