Skip to content

Commit

Permalink
Merge pull request ceph#24895 from votdev/feature_36681
Browse files Browse the repository at this point in the history
rgw: Return tenant field in bucket_stats function

Reviewed-by: Lenz Grimmer <[email protected]>
Reviewed-by: Matt Benjamin <[email protected]>
Reviewed-by: Casey Bodley <[email protected]>
  • Loading branch information
cbodley authored Nov 2, 2018
2 parents a1d8e12 + 9440776 commit cf9a0a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions qa/tasks/radosgw_admin_rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ def task(ctx, config):

assert ret == 200
assert out['owner'] == user1
assert out['tenant'] == ''
bucket_id = out['id']

# TESTCASE 'bucket-stats4','bucket','stats','new empty bucket','succeeds, expected bucket ID'
Expand Down
1 change: 1 addition & 0 deletions src/rgw/rgw_bucket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,7 @@ static int bucket_stats(RGWRados *store, const std::string& tenant_name, std::st

formatter->open_object_section("stats");
formatter->dump_string("bucket", bucket.name);
formatter->dump_string("tenant", bucket.tenant);
formatter->dump_string("zonegroup", bucket_info.zonegroup);
formatter->dump_string("placement_rule", bucket_info.placement_rule);
::encode_json("explicit_placement", bucket.explicit_placement, formatter);
Expand Down

0 comments on commit cf9a0a2

Please sign in to comment.