aboutsummaryrefslogtreecommitdiffstats
path: root/osdf
diff options
context:
space:
mode:
authorChayal, Avteet (ac229e) ac229e@att.com <ac229e@att.com>2018-04-04 22:24:18 -0400
committerChayal, Avteet (ac229e) ac229e@att.com <ac229e@att.com>2018-04-05 22:04:44 -0400
commit3a7fa64c8995642dbd2a5696eb8511adc65f2f5d (patch)
tree469a73bdce6a421e69e5ba2e75972decfac170f1 /osdf
parent43eb254bf347be1a2fd5bed08b87ec87c8bd0376 (diff)
Fix for placement call check and sync response
Fixed the condition to make placement call & sync response to client Issue-ID: OPTFRA-215 and OPTFRA-216 Change-Id: I0f996160e8cd339c663611ba53bd590271ea3b3a Signed-off-by: Chayal, Avteet (ac229e) ac229e@att.com <ac229e@att.com>
Diffstat (limited to 'osdf')
-rw-r--r--osdf/optimizers/placementopt/conductor/remote_opt_processor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/osdf/optimizers/placementopt/conductor/remote_opt_processor.py b/osdf/optimizers/placementopt/conductor/remote_opt_processor.py
index 3e89205..614eca3 100644
--- a/osdf/optimizers/placementopt/conductor/remote_opt_processor.py
+++ b/osdf/optimizers/placementopt/conductor/remote_opt_processor.py
@@ -47,7 +47,7 @@ def process_placement_opt(request_json, policies, osdf_config):
license_info = license_optim(request_json)
# Conductor only handles placement, only call Conductor if placementDemands exist
- if request_json.get('licenseInfo', {}).get('licenseDemands'):
+ if request_json.get('placementInfo', {}).get('placementDemands'):
metrics_log.info(MH.requesting("placement/conductor", req_id))
placement_response = conductor.request(request_json, osdf_config, policies)
if license_info: # Attach license solution if it exists
@@ -56,7 +56,7 @@ def process_placement_opt(request_json, policies, osdf_config):
placement_response = {
"transactionId": transaction_id,
"requestId": req_id,
- "requestState": "complete",
+ "requestStatus": "completed",
"statusMessage": "License selection completed successfully",
"solutionInfo": {"licenseInfo": license_info}
}