diff options
author | Carlos Goncalves <mail@cgoncalves.pt> | 2017-08-17 09:23:08 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-17 09:23:08 +0000 |
commit | 5b1401a9194daae197a8f5ae534b9a37dd483eac (patch) | |
tree | b0af867f58dc0c50686cc1f68e29f1c077896dac /tests | |
parent | d2b6574994e065de13c2d31f9a6d7f27142c0a41 (diff) | |
parent | 580f7ee5064ab2fe6244fa07d7ef3b785de5d926 (diff) |
Merge "Decode received data in byte type to str type"
Diffstat (limited to 'tests')
-rw-r--r-- | tests/inspector/sample.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/inspector/sample.py b/tests/inspector/sample.py index db477de9..dda053ab 100644 --- 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" |