From 450fc8501f8f8506a816ab693a0a2e2cc005af16 Mon Sep 17 00:00:00 2001 From: Michael Dürre Date: Mon, 25 May 2020 19:18:20 +0200 Subject: fixed env variables not working MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixed regex for env property values Issue-ID: SDNC-1196 Signed-off-by: Michael Dürre Change-Id: Ia8a96110f000438bec84d235dde484d313f45a8e --- .../ccsdk/features/sdnr/wt/common/configuration/subtypes/Section.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdnr/wt/common/src/main/java/org/onap') 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); -- cgit 1.2.3-korg