aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Dürre <michael.duerre@highstreet-technologies.com>2020-05-25 19:18:20 +0200
committerMichael Dürre <michael.duerre@highstreet-technologies.com>2020-05-25 17:52:34 +0000
commit5b8596cb016bd6e1e076970fe5029a7dae5e0307 (patch)
tree6d92eff61ec1287be750aeeb98337160ebbf6f6b
parentcaf2fe4a36c231a2639579e4ae4e6f4dfccfc933 (diff)
fixed env variables not working
fixed regex for env property values Issue-ID: SDNC-1196 Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com> Change-Id: Ia8a96110f000438bec84d235dde484d313f45a8e
-rw-r--r--sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/configuration/subtypes/Section.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/configuration/subtypes/Section.java b/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/configuration/subtypes/Section.java
index b6d277f76..39c00da1d 100644
--- a/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/configuration/subtypes/Section.java
+++ b/sdnr/wt/common/src/main/java/org/onap/ccsdk/features/sdnr/wt/common/configuration/subtypes/Section.java
@@ -98,7 +98,7 @@ public class Section {
if (value != null && value.contains("${")) {
LOG.debug("try to find env var(s) for {}",value);
- final String regex = "(\\$\\{[A-Z]+\\})";
+ final String regex = "(\\$\\{[A-Z0-9_-]+\\})";
final Pattern pattern = Pattern.compile(regex);
final Matcher matcher = pattern.matcher(value);
String tmp=new String(value);