summaryrefslogtreecommitdiffstats
path: root/osdfapp.py
diff options
context:
space:
mode:
authorAnkitkumar Patel <ankit@research.att.com>2018-03-28 14:27:53 -0400
committerAnkitkumar Patel <ankit@research.att.com>2018-03-28 14:29:57 -0400
commitad29f38cbcb164a7f328b26daf789dbff90deb98 (patch)
tree4074957d65fcbadee2fb2fad0aa71263b15c8a87 /osdfapp.py
parentcf5fe0f8b49f6f354a77fb28b56465a2e18e820d (diff)
Update the SO sync and async responses.
Updated the sync and async responses and addes testcases related to policy adaptors. Issue-ID: OPTFRA-208 Change-Id: Ia0f88df1b897b6158674f3c3a7ef239f2328dcfc Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
Diffstat (limited to 'osdfapp.py')
-rwxr-xr-xosdfapp.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/osdfapp.py b/osdfapp.py
index 047ef63..62062fc 100755
--- a/osdfapp.py
+++ b/osdfapp.py
@@ -116,8 +116,10 @@ def do_placement_opt():
t = Thread(target=process_placement_opt, args=(request_json, policies, osdf_config))
t.start()
audit_log.info(MH.accepted_valid_request(req_id, request))
- return osdf.operation.responses.osdf_response_for_request_accept(
- req_id=req_id, text="Accepted placement request. Response will be posted to callback URL")
+ return osdf.operation.responses.osdf_response_for_request_accept(request_id=req_id,
+ transaction_id=request_json['transactionId'],
+ request_status="accepted",
+ status_message="")
@app.errorhandler(500)