Code Review
/
doctor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
d2b6574
)
Merge "Decode received data in byte type to str type"
author
Carlos Goncalves
<mail@cgoncalves.pt>
Thu, 17 Aug 2017 09:23:08 +0000
(09:23 +0000)
committer
Gerrit Code Review
<gerrit@opnfv.org>
Thu, 17 Aug 2017 09:23:08 +0000
(09:23 +0000)
tests/inspector/sample.py
patch
|
blob
|
history
diff --git
a/tests/inspector/sample.py
b/tests/inspector/sample.py
index
db477de
..
dda053a
100644
(file)
--- a/
tests/inspector/sample.py
+++ b/
tests/inspector/sample.py
@@
-135,7
+135,7
@@
class InspectorApp(Thread):
self.log.info('event posted in sample inspector at %s' % time.time())
self.log.info('sample inspector = %s' % self.inspector)
self.log.info('sample inspector received data = %s' % request.data)
- events = json.loads(request.data)
+ events = json.loads(request.data
.decode('utf8')
)
self.inspector.handle_events(events)
return "OK"