aboutsummaryrefslogtreecommitdiffstats
path: root/certServiceClient/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'certServiceClient/src/main')
-rw-r--r--certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvProvider.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvProvider.java b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvProvider.java
index 25a152bf..1b8c3606 100644
--- a/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvProvider.java
+++ b/certServiceClient/src/main/java/org/onap/aaf/certservice/client/configuration/EnvProvider.java
@@ -23,10 +23,14 @@ import java.util.Optional;
public class EnvProvider {
public Optional<String> readEnvVariable(String envVariableName) {
- return Optional.ofNullable(System.getenv(envVariableName))
+ return Optional.ofNullable(getSystemEnv(envVariableName))
.filter(EnvProvider::isEnvPresent);
}
+ String getSystemEnv(String envVariableName) {
+ return System.getenv(envVariableName);
+ }
+
private static Boolean isEnvPresent(String envValue) {
return !"".equals(envValue);
}