summaryrefslogtreecommitdiffstats
path: root/sdnr/wt/common
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 19:18:37 +0200
commit450fc8501f8f8506a816ab693a0a2e2cc005af16 (patch)
treea71137e99c63f489f4f3f56ea1f6c21752bce8b6 /sdnr/wt/common
parent93fa0f8e4d58f4dd9043db8798765e4c15e38434 (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
Diffstat (limited to 'sdnr/wt/common')
-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);