diff options
author | Chayal, Avteet (ac229e) <ac229e@att.com> | 2018-11-02 19:17:35 +0000 |
---|---|---|
committer | Chayal, Avteet (ac229e) <ac229e@att.com> | 2018-11-02 19:21:09 +0000 |
commit | b05fb22d90def79369e37f4e08ae19595317421a (patch) | |
tree | 9c61c2c38b680c273d8e51bcff702f9fe6bdd120 /osdf | |
parent | 721a7b04e0ca1736a9d962d7262d3463dc9cb491 (diff) |
Populate serviceResourceId in homing solution3.0.0-ONAP1.2.4
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) <ac229e@att.com>
Diffstat (limited to 'osdf')
-rw-r--r-- | osdf/optimizers/placementopt/conductor/translation.py | 3 |
1 files changed, 2 insertions, 1 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 {}) |