From 1ad37b1dade83b622ddeb862ee8f9a2fdc6692ff Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Tue, 7 Nov 2017 14:54:11 +0200 Subject: [PATCH] Fix bug where 'dead' property of monkey wasn't defined --- monkey_island/cc/resources/monkey.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monkey_island/cc/resources/monkey.py b/monkey_island/cc/resources/monkey.py index 2e2da8a5d..c87adc245 100644 --- a/monkey_island/cc/resources/monkey.py +++ b/monkey_island/cc/resources/monkey.py @@ -53,6 +53,7 @@ class Monkey(flask_restful.Resource): def post(self, **kw): monkey_json = json.loads(request.data) + monkey_json['dead'] = False if 'keepalive' in monkey_json: monkey_json['keepalive'] = dateutil.parser.parse(monkey_json['keepalive']) else: