]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: 'zone modify' prints updated zone
authorCasey Bodley <cbodley@redhat.com>
Thu, 5 May 2016 13:56:47 +0000 (09:56 -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 8a639014a6f2dd950062aa405bbee1762ca23e09)

src/rgw/rgw_admin.cc

index 3e4bcba2790b6dbbbaf9402271ffb9c4e780e805..b18add799ecb89ffb0a4209499537beaca972ca4 100644 (file)
@@ -3493,6 +3493,9 @@ int main(int argc, char **argv)
             cerr << "failed to set zone " << zone_name << " as default: " << cpp_strerror(-ret) << std::endl;
           }
         }
+
+        encode_json("zone", zone, formatter);
+        formatter->flush(cout);
       }
       break;
     case OPT_ZONE_RENAME: