Commit 5a8bccf7 authored by Federico Sismondi's avatar Federico Sismondi
Browse files

fixed double json encoding/decoding

parent 3bdfcd6c
......@@ -133,8 +133,7 @@ class TunConsumer(BaseConsumer):
def handle_control(self, body, message):
msg = None
# body is a json
msg = json.loads(body)
msg = body
if msg["_type"]:
self.log.debug('HANDLE CONTROL from tun processing event type: {0}'.format(msg["_type"]))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment