From eab1f236abbe1d1748cd6bcd3eaea35633da84f1 Mon Sep 17 00:00:00 2001 From: "Chayal, Avteet (ac229e) ac229e@att.com" Date: Wed, 18 Apr 2018 21:59:52 -0400 Subject: [OPTFRA-217] Fix identifier value in placementSol Identifier should be "serviceInstanceId" or "cloudRegionId" Issue-ID: OPTFRA-217 Change-Id: I1ddab070922f43ac65f54a3fcc6f36986d04de3a Signed-off-by: Chayal, Avteet (ac229e) ac229e@att.com --- osdf/optimizers/placementopt/conductor/conductor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osdf/optimizers/placementopt/conductor/conductor.py b/osdf/optimizers/placementopt/conductor/conductor.py index 682f606..49e7bfc 100644 --- a/osdf/optimizers/placementopt/conductor/conductor.py +++ b/osdf/optimizers/placementopt/conductor/conductor.py @@ -135,7 +135,7 @@ def conductor_response_processor(conductor_response, raw_response, req_id): solution = { 'resourceModuleName': resource, 'serviceResourceId': reco[resource].get('service_resource_id', ""), - 'solution': {"identifier": c['inventory_type'], + 'solution': {"identifier": name_map.get(c['inventory_type'], c['inventory_type']), 'identifiers': [c['candidate_id']], 'cloudOwner': c.get('cloud_owner', "")}, 'assignmentInfo': [] -- cgit 1.2.3-korg