]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: fix 'period push' handling of --url 9210/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 16 May 2016 13:37:05 +0000 (09:37 -0400)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 19 May 2016 20:01:47 +0000 (13:01 -0700)
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 3e4bcba2790b6dbbbaf9402271ffb9c4e780e805..c7ed0674ef0cd7eea5d4ed9fcb2aa3cebdc8e4d1 100644 (file)
@@ -3754,7 +3754,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;