You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/04/18 13:14:09 UTC
[incubator-opendal] branch fix-oss-env created (now 16135919)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a change to branch fix-oss-env
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
at 16135919 fix(services/oss): Fix env not loaded for oss signer
This branch includes the following new commits:
new 16135919 fix(services/oss): Fix env not loaded for oss signer
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[incubator-opendal] 01/01: fix(services/oss): Fix env not loaded for oss signer
Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch fix-oss-env
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 16135919a014cb98c9e0a47b3d0b7eb3d4cfb9d9
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Apr 18 21:13:48 2023 +0800
fix(services/oss): Fix env not loaded for oss signer
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
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);