]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: 'zonegroup modify' prints updated zonegroup
authorCasey Bodley <cbodley@redhat.com>
Thu, 5 May 2016 13:59:32 +0000 (09:59 -0400)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 10 May 2016 18:40:11 +0000 (11:40 -0700)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit a033f40caf60083111886aa804fcdbf3ee60aef8)

src/rgw/rgw_admin.cc

index b18add799ecb89ffb0a4209499537beaca972ca4..2ea13fe7d716e5d5f4c5313a63c4507f97fbd711 100644 (file)
@@ -3033,6 +3033,9 @@ int main(int argc, char **argv)
             cerr << "failed to set zonegroup " << zonegroup_name << " as default: " << cpp_strerror(-ret) << std::endl;
           }
         }
+
+        encode_json("zonegroup", zonegroup, formatter);
+        formatter->flush(cout);
       }
       break;
     case OPT_ZONEGROUP_SET: