diff options
author | Instrumental <jonathan.gathman@att.com> | 2018-06-22 18:41:08 -0500 |
---|---|---|
committer | Instrumental <jonathan.gathman@att.com> | 2018-06-22 18:41:14 -0500 |
commit | 68f3e5a2875f74863b6cbe8eb6dc7138b89668a5 (patch) | |
tree | dabbd3526cc64b9a6310678346a46b36122a6efc /cadi/core | |
parent | f932f1c8b0e1d29536405c27b8543f4a78e60433 (diff) |
Refine aafcli for Tests
Issue-ID: AAF-361
Change-Id: Ib28ab9e4ccea7bacc165946cf7075ee1b75edd76
Signed-off-by: Instrumental <jonathan.gathman@att.com>
Diffstat (limited to 'cadi/core')
-rw-r--r-- | cadi/core/src/main/java/org/onap/aaf/cadi/config/Config.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cadi/core/src/main/java/org/onap/aaf/cadi/config/Config.java b/cadi/core/src/main/java/org/onap/aaf/cadi/config/Config.java index 1f778ad6..7c897e37 100644 --- a/cadi/core/src/main/java/org/onap/aaf/cadi/config/Config.java +++ b/cadi/core/src/main/java/org/onap/aaf/cadi/config/Config.java @@ -720,7 +720,12 @@ public class Config { String url = _url, replacement; int idxAAF_LOCATE_URL; if((idxAAF_LOCATE_URL=_url.indexOf(AAF_LOCATE_URL_TAG))>0 && ((replacement=access.getProperty(AAF_LOCATE_URL, null))!=null)) { - url = replacement + "/locate" + _url.substring(idxAAF_LOCATE_URL+AAF_LOCATE_URL_TAG.length()); + StringBuilder sb = new StringBuilder(replacement); + if(!replacement.endsWith("/locate")) { + sb.append("/locate"); + } + sb.append(_url,idxAAF_LOCATE_URL+AAF_LOCATE_URL_TAG.length(),_url.length()); + url = sb.toString(); } try { |