diff options
-rw-r--r-- | src/main/java/org/onap/aai/sa/searchdbabstraction/elasticsearch/config/ElasticSearchConfig.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/aai/sa/searchdbabstraction/elasticsearch/config/ElasticSearchConfig.java b/src/main/java/org/onap/aai/sa/searchdbabstraction/elasticsearch/config/ElasticSearchConfig.java index f4bc5ef..4680ded 100644 --- a/src/main/java/org/onap/aai/sa/searchdbabstraction/elasticsearch/config/ElasticSearchConfig.java +++ b/src/main/java/org/onap/aai/sa/searchdbabstraction/elasticsearch/config/ElasticSearchConfig.java @@ -209,7 +209,7 @@ public class ElasticSearchConfig { if(passwordValue.get().startsWith("OBF:")){ setTrustStorePassword(Password.deobfuscate(passwordValue.get())); }else if(passwordValue.get().startsWith("ENV:")){ - setTrustStorePassword(System.getProperty(StringUtils.removeStart(passwordValue.get(), "ENV:"))); + setTrustStorePassword(System.getenv(StringUtils.removeStart(passwordValue.get(), "ENV:"))); } else{ setTrustStorePassword(passwordValue.get()); @@ -226,7 +226,7 @@ public class ElasticSearchConfig { if(passwordValue.get().startsWith("OBF:")){ setKeyStorePassword(Password.deobfuscate(passwordValue.get())); }else if(passwordValue.get().startsWith("ENV:")){ - setKeyStorePassword(System.getProperty(StringUtils.removeStart(passwordValue.get(), "ENV:"))); + setKeyStorePassword(System.getenv(StringUtils.removeStart(passwordValue.get(), "ENV:"))); } else{ setKeyStorePassword(passwordValue.get()); |