mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-26 18:08:36 +00:00
parent
d4366f8493
commit
0216cef7bd
@ -114,7 +114,7 @@ public class AwsEc2ServiceImpl extends AbstractLifecycleComponent implements Aws
|
||||
|
||||
AWSCredentialsProvider credentials;
|
||||
|
||||
if (key == null && secret == null) {
|
||||
if (key.isEmpty() && secret.isEmpty()) {
|
||||
credentials = new AWSCredentialsProviderChain(
|
||||
new EnvironmentVariableCredentialsProvider(),
|
||||
new SystemPropertiesCredentialsProvider(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user