diff options
author | Denes Nemeth <denes.nemeth@nokia.com> | 2018-03-01 10:10:24 +0100 |
---|---|---|
committer | Denes Nemeth <denes.nemeth@nokia.com> | 2018-03-01 10:10:24 +0100 |
commit | 77b67133577c4decf7c4826edcc04edcde135df6 (patch) | |
tree | 212b7eb903acfc76112722638b3cd5bfe584484b /nokiav2/driver/src/main/java/org/onap/vfc/nfvo | |
parent | 67f1d734060a0a4ac810c159b86d3e18fe1fb842 (diff) |
Fix artifact deployment to nexus
Change-Id: Ib63a97cd93989ec1e94e968f4d044f4499fc8f4c
Signed-off-by: Denes Nemeth <denes.nemeth@nokia.com>
Issue-ID: VFC-728
Diffstat (limited to 'nokiav2/driver/src/main/java/org/onap/vfc/nfvo')
-rw-r--r-- | nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/onap/core/MsbApiProvider.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/onap/core/MsbApiProvider.java b/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/onap/core/MsbApiProvider.java index b6f4644a..b652b59c 100644 --- a/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/onap/core/MsbApiProvider.java +++ b/nokiav2/driver/src/main/java/org/onap/vfc/nfvo/driver/vnfm/svnfm/nokia/onap/core/MsbApiProvider.java @@ -59,8 +59,9 @@ public class MsbApiProvider extends IpMappingProvider { */ public String getMicroServiceUrl(String name, String version) { MicroServiceFullInfo microServiceFullInfo = getMicroServiceInfo(name, version); - String protocol = "http://"; //FIXME the enable_ssl field should be used, but it is not available in SDK String ipAnPort = getNodeIpAnPort(microServiceFullInfo); + //FIXME the enable_ssl field should be used, but it is not available in SDK depends on MSB-151 jira issue + String protocol = (ipAnPort.endsWith(":8443") || ipAnPort.endsWith(":443")) ? "https://" : "http://"; //the field name in A&AI is misleading the URL is relative path postfixed to http(s)://ip:port String fullUrl = protocol + ipAnPort + microServiceFullInfo.getUrl(); return fullUrl; |