diff options
author | Boslet, Cory <cory.boslet@att.com> | 2020-07-24 13:21:13 -0400 |
---|---|---|
committer | Benjamin, Max (mb388a) <mb388a@att.com> | 2020-07-24 13:21:13 -0400 |
commit | 1b8c147715a3288fff26d4752310fb0ccefc222d (patch) | |
tree | 955763d0e1c9f470aec3b145595a3d144e1815d6 /adapters/mso-openstack-adapters/src/main/java | |
parent | 711d7b7f30d76a0f18f2e9d2762df2de5171180a (diff) |
Fixed issue where uri was being set where
Fixed issue where uri was being set where hostname was expected.
Issue-ID: SO-3095
Signed-off-by: Benjamin, Max (mb388a) <mb388a@att.com>
Change-Id: I6386628707c1ee9860b2ed87cf7868e23dc16329
Diffstat (limited to 'adapters/mso-openstack-adapters/src/main/java')
-rw-r--r-- | adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java index 92e9b13bb6..e537b241c0 100644 --- a/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java +++ b/adapters/mso-openstack-adapters/src/main/java/org/onap/so/heatbridge/HeatBridgeImpl.java @@ -570,9 +570,10 @@ public class HeatBridgeImpl implements HeatBridgeApi { Vserver vserver = vserverWrapper.asBean(Vserver.class).get(); List<String> pciIds = HeatBridgeUtils.extractPciIdsFromVServer(vserver); if (CollectionUtils.isNotEmpty(pciIds)) { - List<String> matchingPservers = vserverRelationships.get().getRelatedLinks(AAIObjectType.PSERVER); + List<AAIResourceUri> matchingPservers = + vserverRelationships.get().getRelatedUris(AAIObjectType.PSERVER); if (matchingPservers != null && matchingPservers.size() == 1) { - pserverToPciIdMap.put(matchingPservers.get(0), pciIds); + pserverToPciIdMap.put(matchingPservers.get(0).getURIKeys().get("hostname"), pciIds); } } } |