From: Casey Bodley Date: Mon, 16 May 2016 13:37:05 +0000 (-0400) Subject: radosgw-admin: fix 'period push' handling of --url X-Git-Tag: v10.2.2~58^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9210%2Fhead;p=ceph.git radosgw-admin: fix 'period push' handling of --url 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 --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 3e4bcba2790b..c7ed0674ef0c 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -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;