From 9652a48a46c1a6a6bd2a0cd1581d6093fff3369b Mon Sep 17 00:00:00 2001 From: Abhishek Lekshmanan Date: Thu, 23 Feb 2017 11:13:53 +0100 Subject: [PATCH] rgw: aws sync module: set keys for rest client Signed-off-by: Abhishek Lekshmanan --- src/rgw/rgw_sync_module_aws.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/rgw/rgw_sync_module_aws.cc b/src/rgw/rgw_sync_module_aws.cc index 7bb98a539ab..8e7bda10083 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() { -- 2.39.5