summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdf/optimizers/placementopt/conductor/conductor.py6
-rwxr-xr-xosdf/templates/plc_opt_response.jsont2
2 files changed, 4 insertions, 4 deletions
diff --git a/osdf/optimizers/placementopt/conductor/conductor.py b/osdf/optimizers/placementopt/conductor/conductor.py
index 663857b..682f606 100644
--- a/osdf/optimizers/placementopt/conductor/conductor.py
+++ b/osdf/optimizers/placementopt/conductor/conductor.py
@@ -154,7 +154,7 @@ def conductor_response_processor(conductor_response, raw_response, req_id):
debug_log.debug("The key[{}] is not mapped and will not be returned in assignment info".format(key))
composite_solutions.append(solution)
- request_state = conductor_response['plans'][0]['status']
+ request_status = conductor_response['plans'][0]['status']
transaction_id = raw_response.headers.get('transaction_id', "")
status_message = conductor_response.get('plans')[0].get('message', "")
@@ -166,7 +166,7 @@ def conductor_response_processor(conductor_response, raw_response, req_id):
resp = {
"transactionId": transaction_id,
"requestId": req_id,
- "requestState": request_state,
+ "requestStatus": request_status,
"statusMessage": status_message,
"solutions": solution_info
}
@@ -188,6 +188,6 @@ def conductor_no_solution_processor(conductor_response, raw_response, request_id
templ = Template(open(template_placement_response).read())
return json.loads(templ.render(composite_solutions=[], requestId=request_id, license_solutions=[],
transactionId=raw_response.headers.get('transaction_id', ""),
- requestState="completed", statusMessage=status_message, json=json))
+ requestStatus="completed", statusMessage=status_message, json=json))
diff --git a/osdf/templates/plc_opt_response.jsont b/osdf/templates/plc_opt_response.jsont
index 2bd9f71..e5709e7 100755
--- a/osdf/templates/plc_opt_response.jsont
+++ b/osdf/templates/plc_opt_response.jsont
@@ -1,7 +1,7 @@
{
"requestId": "{{requestId}}",
"transactionId": "{{transacationId}}",
- "requestState": "{{requestState}}",
+ "requestStatus": "{{requestStatus}}",
"statusMessage": "{{statusMessage}}"
"solutions": {
"placementSolutions": {{ json.dumps(composite_solutions) }},