# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# ========================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
from jsonschema import validate
from var_declaration import policy_instances, policy_types, policy_status, callbacks, forced_settings, policy_fingerprint, hosts_set, data_delivery_counter, app
from maincommon import check_apipath, apipath, get_supported_interfaces_response, extract_host_name
from jsonschema import validate
from var_declaration import policy_instances, policy_types, policy_status, callbacks, forced_settings, policy_fingerprint, hosts_set, data_delivery_counter, app
from maincommon import check_apipath, apipath, get_supported_interfaces_response, extract_host_name
if (resp.status_code<199 & resp.status_code > 299):
return Response('Post status failed with code: '+resp.status_code, status=500, mimetype=TEXT_PLAIN)
if (resp.status_code<199 & resp.status_code > 299):
return Response('Post status failed with code: '+resp.status_code, status=500, mimetype=TEXT_PLAIN)
- app.run(port=port_number, host="127.0.0.1", threaded=False)
\ No newline at end of file
+ app.run(port=port_number, host="127.0.0.1")
\ No newline at end of file