summaryrefslogtreecommitdiffstats
path: root/osdfapp.py
diff options
context:
space:
mode:
authorVarma, Vikas <vv8305@att.com>2018-09-19 18:38:26 -0400
committerVarma, Vikas <vv8305@att.com>2018-09-20 07:33:49 -0400
commite7199cef05b7bad04f3ec2b7815423d5d07aa642 (patch)
treee8ed1dc8ea851b31ba228ca5295ca74ab7d27a12 /osdfapp.py
parent6ae89d5df37c626d7bd6f1fcf94571e718f10b02 (diff)
Disabling policy retrieval for pci opt
Fixing the pci optimization response. Disable policy retrieval until the policies are loaded. Fix merge issues with optfapp.py Change-Id: I2acb82aac1cd6d154abf37f58755016bc377e475 Signed-off-by: Varma, Vikas <vv8305@att.com> Issue-ID: OPTFRA-342
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 1e076f1..b1819ee 100755
--- a/osdfapp.py
+++ b/osdfapp.py
@@ -180,15 +180,17 @@ def do_pci_optimization():
g.request_id = req_id
audit_log.info(MH.received_request(request.url, request.remote_addr, json.dumps(request_json)))
PCIOptimizationAPI(request_json).validate()
- policies = get_policies(request_json, "pciopt")
+ #disable policy retrieval
+ # policies = get_policies(request_json, "pciopt")
audit_log.info(MH.new_worker_thread(req_id, "[for pciopt]"))
- t = Thread(target=process_pci_optimation, args=(request_json, policies, osdf_config))
+ t = Thread(target=process_pci_optimation, args=(request_json, osdf_config, None))
t.start()
audit_log.info(MH.accepted_valid_request(req_id, request))
return req_accept(request_id=req_id,
transaction_id=request_json['requestInfo']['transactionId'],
request_status="accepted", status_message="")
+
@app.errorhandler(500)
def internal_failure(error):
"""Returned when unexpected coding errors occur during initial synchronous processing"""