Code Review
/
it
/
otf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
added documentation and updated VTHs
[it/otf.git]
/
a1-mediator-vth
/
a1-mediator-vth.py
diff --git
a/a1-mediator-vth/a1-mediator-vth.py
b/a1-mediator-vth/a1-mediator-vth.py
index
e0269b1
..
59ed7b8
100644
(file)
--- a/
a1-mediator-vth/a1-mediator-vth.py
+++ b/
a1-mediator-vth/a1-mediator-vth.py
@@
-80,7
+80,7
@@
def executeRicRequest():
action = requestData['action'].lower()
\r
_check_incoming_request(requestData)
\r
\r
action = requestData['action'].lower()
\r
_check_incoming_request(requestData)
\r
\r
- os.environ['NO_PROXY'] = '
127.0.0.1' # TODO testing purpose w/ mock server. Needs to remove on final version
\r
+ os.environ['NO_PROXY'] = '
*'
\r
with open('config.json') as configFile:
\r
config = json.load(configFile)
\r
\r
with open('config.json') as configFile:
\r
config = json.load(configFile)
\r
\r
@@
-153,7
+153,7
@@
def _send_edit_request(request_data, config):
return requests.get(path)
\r
if request_type == 'put':
\r
payload = request_data['payload']
\r
return requests.get(path)
\r
if request_type == 'put':
\r
payload = request_data['payload']
\r
- return requests.put(path, payload)
\r
+ return requests.put(path,
json=
payload)
\r
if request_type == 'delete':
\r
return requests.delete(path)
\r
\r
if request_type == 'delete':
\r
return requests.delete(path)
\r
\r