aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2019-05-26 19:21:47 +0300
committerIttay Stern <ittay.stern@att.com>2019-05-26 20:15:03 +0300
commitf0c604f86f5613e4709cc5595b2fae8512217e7c (patch)
treeb94c0970ee15541c2c32b6b6d63b22ec4538bf2f /vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js
parent065ca8e7d4851dc30683aed9dfc7771cb9e14d6e (diff)
Differentiate cloudRegions with same name and different owner4.2.0
Replaces change I22c0b07173950c253a9272b8a96ab63e006efa49 Resolves defect: Issue-ID: VID-482 Change-Id: I38c2f6a86a044297b1b76c1316e50cacb0264da9 Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js')
-rwxr-xr-xvid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js b/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js
index 030faf524..af2483b68 100755
--- a/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js
+++ b/vid-app-common/src/main/webapp/app/vid/scripts/services/aaiService.js
@@ -445,9 +445,14 @@ var AaiService = function ($http, $log, PropertyService, UtilityService, COMPONE
var aaiLcpCloudRegionTenants = response.data;
for (var i = 0; i < aaiLcpCloudRegionTenants.length; i++) {
+ var cloudOwner = aaiLcpCloudRegionTenants[i][COMPONENT.CLOUD_OWNER];
+ var cloudRegionId = aaiLcpCloudRegionTenants[i][COMPONENT.CLOUD_REGION_ID];
+ var cloudRegionOptionId = 'option-' + cloudOwner + '-' + cloudRegionId;
+
lcpCloudRegionTenants.push({
- "cloudRegionId": aaiLcpCloudRegionTenants[i][COMPONENT.CLOUD_REGION_ID],
- "cloudOwner": aaiLcpCloudRegionTenants[i][COMPONENT.CLOUD_OWNER],
+ "cloudOwner": cloudOwner,
+ "cloudRegionId": cloudRegionId,
+ "cloudRegionOptionId": cloudRegionOptionId.toLowerCase(),
"tenantName": aaiLcpCloudRegionTenants[i][COMPONENT.TENANT_NAME],
"tenantId": aaiLcpCloudRegionTenants[i][COMPONENT.TENANT_ID],
"isPermitted": aaiLcpCloudRegionTenants[i][COMPONENT.IS_PERMITTED]});