This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


The following commit(s) were added to refs/heads/main by this push:
     new 2ff13496 fix(services/oss): Fix env not loaded for oss signer (#2029)
2ff13496 is described below

commit 2ff134966ea70273a0611a185ed0d8cc14479cbf
Author: Xuanwo <[email protected]>
AuthorDate: Tue Apr 18 21:19:29 2023 +0800

    fix(services/oss): Fix env not loaded for oss signer (#2029)
    
    Signed-off-by: Xuanwo <[email protected]>
---
 core/src/services/oss/backend.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/src/services/oss/backend.rs b/core/src/services/oss/backend.rs
index 56eff1e4..b3077c7b 100644
--- a/core/src/services/oss/backend.rs
+++ b/core/src/services/oss/backend.rs
@@ -311,6 +311,8 @@ impl Builder for OssBuilder {
         debug!("backend use presign_endpoint: {}", &presign_endpoint);
 
         let mut cfg = AliyunConfig::default();
+        // Load cfg from env first.
+        cfg = cfg.from_env();
 
         if let Some(v) = self.access_key_id.take() {
             cfg.access_key_id = Some(v);

Reply via email to