]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: fix 'period push' handling of --url 9146/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 16 May 2016 13:37:05 +0000 (09:37 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 18 May 2016 19:40:49 +0000 (15:40 -0400)
was calling send_to_remote_gateway(), but passing 'url' instead of
'remote'. now uses send_to_remote_or_url() to accept either

Fixes: http://tracker.ceph.com/issues/15926
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_admin.cc

index 7dfbcb6412a4f8c254d95e2cd2992af72324d899..a55b50e645f8c36875cf95a87cc4105c0b4e4241 100644 (file)
@@ -3819,7 +3819,8 @@ int main(int argc, char **argv)
       jf.flush(bl);
 
       JSONParser p;
-      ret = send_to_remote_gateway(url, info, bl, p);
+      ret = send_to_remote_or_url(remote, url, access_key, secret_key,
+                                  info, bl, p);
       if (ret < 0) {
         cerr << "request failed: " << cpp_strerror(-ret) << std::endl;
         return ret;