summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChayal, Avteet (ac229e) ac229e@att.com <ac229e@att.com>2018-04-18 21:59:52 -0400
committerChayal, Avteet (ac229e) ac229e@att.com <ac229e@att.com>2018-04-18 22:00:30 -0400
commiteab1f236abbe1d1748cd6bcd3eaea35633da84f1 (patch)
tree8039e3a7ac8e79bed4f5cc2050b028aa0779ec5b
parent3a7fa64c8995642dbd2a5696eb8511adc65f2f5d (diff)
[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 <ac229e@att.com>
-rw-r--r--osdf/optimizers/placementopt/conductor/conductor.py2
1 files changed, 1 insertions, 1 deletions
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': []