diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-10-19 11:13:05 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-10-19 11:13:16 -0500 |
commit | 575c9820dffbfee3311e19a5f64e64b98c2ed5f8 (patch) | |
tree | 654d24b98fd1b22194365aae58387eb1e66e9d37 /auth/auth-core/src | |
parent | c3726105c664d089158f095d3a353815d1c3de00 (diff) |
Fix GUI Buttons
Issue-ID: AAF-435
Change-Id: I8b5e83609176a22b5aa54cac6fd0911488bd707b
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'auth/auth-core/src')
-rw-r--r-- | auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java index f2495440..df80ec6d 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/server/AbsService.java @@ -34,6 +34,7 @@ import org.onap.aaf.cadi.Access; import org.onap.aaf.cadi.Access.Level; import org.onap.aaf.cadi.CadiException; import org.onap.aaf.cadi.LocatorException; +import org.onap.aaf.cadi.aaf.Defaults; import org.onap.aaf.cadi.aaf.v2_0.AAFConHttp; import org.onap.aaf.cadi.client.Rcli; import org.onap.aaf.cadi.client.Retryable; @@ -69,6 +70,13 @@ public abstract class AbsService<ENV extends BasicEnv, TRANS extends Trans> exte locator_deploy = null; } else { locator_deploy = Split.splitTrim(':', component); + if(locator_deploy.length>1 && "AAF_RELEASE".equals(locator_deploy[1])) { + locator_deploy[1]=access.getProperty(Config.AAF_RELEASE, Defaults.AAF_VERSION); + int snapshot = locator_deploy[1].indexOf("-SNAPSHOT"); + if(snapshot>0) { + locator_deploy[1]=locator_deploy[1].substring(0, snapshot); + } + } } if (component == null || locator_deploy==null || locator_deploy.length<2) { |