From b05fb22d90def79369e37f4e08ae19595317421a Mon Sep 17 00:00:00 2001 From: "Chayal, Avteet (ac229e)" Date: Fri, 2 Nov 2018 19:17:35 +0000 Subject: Populate serviceResourceId in homing solution Fix to populate serviceResourceId in solution to SO Updated code to pass service_resource_id in HAS payload Issue-ID: OPTFRA-249 Change-Id: I00415d84c096faccfad86989812ee485bf8f97c1 Signed-off-by: Chayal, Avteet (ac229e) --- osdf/optimizers/placementopt/conductor/translation.py | 3 ++- pom.xml | 2 +- version.properties | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/osdf/optimizers/placementopt/conductor/translation.py b/osdf/optimizers/placementopt/conductor/translation.py index d856a22..f74f461 100644 --- a/osdf/optimizers/placementopt/conductor/translation.py +++ b/osdf/optimizers/placementopt/conductor/translation.py @@ -225,7 +225,8 @@ def get_demand_properties(demand, policies): for policy_property in get_policy_properties(demand, policies): prop = dict(inventory_provider=policy_property['inventoryProvider'], inventory_type=policy_property['inventoryType'], - service_type=demand['serviceResourceId']) + service_type=demand['serviceResourceId'], + service_resource_id=demand['serviceResourceId']) prop['attributes'] = dict() prop['attributes'].update({'global-customer-id': policy_property['customerId']} if policy_property['customerId'] else {}) diff --git a/pom.xml b/pom.xml index d8519e0..224ca8f 100644 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,7 @@ org.onap.optf.osdf optf-osdf optf-osdf - 1.2.3-SNAPSHOT + 1.2.4-SNAPSHOT Optimization Service Design Framework diff --git a/version.properties b/version.properties index 6988e39..023840b 100644 --- a/version.properties +++ b/version.properties @@ -19,7 +19,7 @@ major=1 minor=2 -patch=3 +patch=4 base_version=${major}.${minor}.${patch} -- cgit 1.2.3-korg