From: Abhishek Lekshmanan Date: Thu, 23 Feb 2017 10:13:53 +0000 (+0100) Subject: rgw: aws sync module: set keys for rest client X-Git-Tag: v13.1.0~270^2~118 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9652a48a46c1a6a6bd2a0cd1581d6093fff3369b;p=ceph.git rgw: aws sync module: set keys for rest client Signed-off-by: Abhishek Lekshmanan --- diff --git a/src/rgw/rgw_sync_module_aws.cc b/src/rgw/rgw_sync_module_aws.cc index 7bb98a539ab4..8e7bda10083a 100644 --- a/src/rgw/rgw_sync_module_aws.cc +++ b/src/rgw/rgw_sync_module_aws.cc @@ -113,11 +113,10 @@ class RGWAWSDataSyncModule: public RGWDataSyncModule { public: RGWAWSDataSyncModule(CephContext *cct, const string& s3_endpoint, const string& access_key, const string& secret){ conf.id = string("s3:") + s3_endpoint; - // TODO: modify restconn class to accept user spec. keys conf.conn = new RGWRESTConn(cct, - nullptr, // we don't need a rados store handle for this client conf.id, - { s3_endpoint }); + { s3_endpoint }, + RGWAccessKey(access_key,secret)); } ~RGWAWSDataSyncModule() {