diff options
author | Balaji, Ramya (rb111y) <rb111y@att.com> | 2018-03-22 14:33:24 -0400 |
---|---|---|
committer | Randa Maher <rx196w@att.com> | 2018-03-22 19:17:12 +0000 |
commit | bcc0324b5862a1d1bc46a4d5f8564431e8b3862e (patch) | |
tree | d6595b66fdf9a99593f16cfc63477fa7367fce62 | |
parent | 4e2bcb85f310296e7668859278b5f0517ad0db11 (diff) |
Corrected condition to pick region
Fixed condition so that region
can be determined correctly
Issue-ID: APPC-776
Change-Id: Iaf57a4face50d99a56cd4b85c0a318d34632a1e8
Signed-off-by: Balaji, Ramya (rb111y) <rb111y@att.com>
-rw-r--r-- | appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/ServiceCatalogV2.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/ServiceCatalogV2.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/ServiceCatalogV2.java index 72b033276..8d5a1cef9 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/ServiceCatalogV2.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/impl/ServiceCatalogV2.java @@ -263,7 +263,7 @@ public class ServiceCatalogV2 extends ServiceCatalog { Matcher matcher = urlPattern.matcher(endpointUrl);
if (!matcher.matches() ||
!url.getHost().equals(matcher.group(1)) ||
- (url.getPort() != null && url.getPort().equals(matcher.group(2))) ) {
+ (url.getPort() != null && !url.getPort().equals(matcher.group(2))) ) {
continue;
}
|