]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: aws sync module: set keys for rest client
authorAbhishek Lekshmanan <abhishek@suse.com>
Thu, 23 Feb 2017 10:13:53 +0000 (11:13 +0100)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 10 Apr 2018 15:03:10 +0000 (08:03 -0700)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/rgw/rgw_sync_module_aws.cc

index 7bb98a539ab494a411074b4737987e050f8e2c19..8e7bda10083a0d0f240c12e7bf41d424d82cd541 100644 (file)
@@ -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() {