forked from p34709852/monkey
Merge pull request #71 from guardicore/bugfix/monkey-dead-key-not-exist
Fix bug where 'dead' property of monkey wasn't defined
This commit is contained in:
commit
ab0f0aefef
|
@ -53,6 +53,7 @@ class Monkey(flask_restful.Resource):
|
||||||
|
|
||||||
def post(self, **kw):
|
def post(self, **kw):
|
||||||
monkey_json = json.loads(request.data)
|
monkey_json = json.loads(request.data)
|
||||||
|
monkey_json['dead'] = False
|
||||||
if 'keepalive' in monkey_json:
|
if 'keepalive' in monkey_json:
|
||||||
monkey_json['keepalive'] = dateutil.parser.parse(monkey_json['keepalive'])
|
monkey_json['keepalive'] = dateutil.parser.parse(monkey_json['keepalive'])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue