Commit 767fb9e6 by haoshuwei

fix bug for ack hybrid

Signed-off-by: haoshuwei <haoshuwei24@gmail.com>
parent 00dabbdf
...@@ -117,6 +117,7 @@ func (o *ObjectStore) Init(config map[string]string) error { ...@@ -117,6 +117,7 @@ func (o *ObjectStore) Init(config map[string]string) error {
if len(accessKeySecret) == 0 { if len(accessKeySecret) == 0 {
return errors.Errorf("IS_HYBRID set to true, but ALIBABA_CLOUD_ACCESS_KEY_SECRET environment variable is not set") return errors.Errorf("IS_HYBRID set to true, but ALIBABA_CLOUD_ACCESS_KEY_SECRET environment variable is not set")
} }
client, err = oss.New(endpoint, accessKeyID, accessKeySecret)
} else { } else {
ramRole, err := getRamRole() ramRole, err := getRamRole()
if err != nil { if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment