From c85573adfa60858132ee13844f50c54ba02a243e Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 10 Mar 2016 10:25:09 -0800 Subject: [PATCH] rgw: also dump realm in radosgw-admin sync status command Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_admin.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 4a5423d216f0a..4ff679229a9ae 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -1874,11 +1874,13 @@ static void tab_dump(const string& header, int width, const list& entrie static void sync_status(Formatter *formatter) { - RGWZoneGroup zonegroup = store->get_zonegroup(); + RGWRealm& realm = store->realm; + RGWZoneGroup& zonegroup = store->get_zonegroup(); RGWZone& zone = store->get_zone(); int width = 15; + cout << std::setw(width) << "realm" << std::setw(1) << " " << realm.get_id() << " (" << realm.get_name() << ")" << std::endl; cout << std::setw(width) << "zonegroup" << std::setw(1) << " " << zonegroup.get_id() << " (" << zonegroup.get_name() << ")" << std::endl; cout << std::setw(width) << "zone" << std::setw(1) << " " << zone.id << " (" << zone.name << ")" << std::endl; -- 2.39.5