Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Make certs in Policy Agent configurable
[nonrtric.git]
/
test
/
mrstub
/
app
/
main.py
diff --git
a/test/mrstub/app/main.py
b/test/mrstub/app/main.py
index
5bb0988
..
8804a04
100644
(file)
--- a/
test/mrstub/app/main.py
+++ b/
test/mrstub/app/main.py
@@
-211,6
+211,12
@@
def events_write():
try:
answer=request.json
print(AGENT_WRITE_URL+ " json=" + json.dumps(answer, indent=2))
try:
answer=request.json
print(AGENT_WRITE_URL+ " json=" + json.dumps(answer, indent=2))
+ if isinstance(answer, dict):
+ #Create a an array if the answer is a dict (single message)
+ answer_list=[]
+ answer_list.append(answer)
+ answer=answer_list
+
for item in answer:
id=item['correlationId']
if (id is None):
for item in answer:
id=item['correlationId']
if (id is None):