Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve environment variable implements #900

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

improve environment variable implements #900

wants to merge 2 commits into from

Conversation

JacksonTian
Copy link
Contributor

No description provided.

}
}

public static void setEnvironmentAccessKeyId(String environmentAccessKeyId) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种方式还不能删掉,用户是可能会用到的,可以先置为弃用,标注弃用时间。时间到期再删。

@@ -1,48 +0,0 @@
package com.aliyuncs.utils;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这种方式还不能删掉,用户是可能会用到的,可以先置为弃用,标注弃用时间。时间到期再删。

@@ -16,7 +16,7 @@ public DefaultCredentialsProvider() throws ClientException {
defaultProviders.add(new SystemPropertiesCredentialsProvider());
defaultProviders.add(new EnvironmentVariableCredentialsProvider());
defaultProviders.add(new ProfileCredentialsProvider());
String roleName = AuthUtils.getEnvironmentECSMetaData();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要保留和兼容之前的get方式,因为AuthUtils有对应的set方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants