Populate serviceResourceId in homing solution 59/71759/1 1.2.4 3.0.0-ONAP
authorChayal, Avteet (ac229e) <ac229e@att.com>
Fri, 2 Nov 2018 19:17:35 +0000 (19:17 +0000)
committerChayal, Avteet (ac229e) <ac229e@att.com>
Fri, 2 Nov 2018 19:21:09 +0000 (19:21 +0000)
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>
osdf/optimizers/placementopt/conductor/translation.py
pom.xml
version.properties

index d856a22..f74f461 100644 (file)
@@ -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 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -27,7 +27,7 @@
     <groupId>org.onap.optf.osdf</groupId>
     <artifactId>optf-osdf</artifactId>
     <name>optf-osdf</name>
-    <version>1.2.3-SNAPSHOT</version>
+    <version>1.2.4-SNAPSHOT</version>
     <description>Optimization Service Design Framework</description>
 
     <properties>
index 6988e39..023840b 100644 (file)
@@ -19,7 +19,7 @@
 
 major=1
 minor=2
-patch=3
+patch=4
 
 base_version=${major}.${minor}.${patch}