forked from p15670423/monkey
Island: Add more detail to TODO in Monkey resource
This commit is contained in:
parent
e8de38881c
commit
b15612c9ae
|
@ -27,7 +27,8 @@ class Monkey(flask_restful.Resource):
|
||||||
if guid:
|
if guid:
|
||||||
monkey_json = mongo.db.monkey.find_one_or_404({"guid": guid})
|
monkey_json = mongo.db.monkey.find_one_or_404({"guid": guid})
|
||||||
# TODO: When the "legacy" format is no longer needed, update this logic and remove the
|
# TODO: When the "legacy" format is no longer needed, update this logic and remove the
|
||||||
# "/api/monkey/<string:guid>/<string:config_format>" route.
|
# "/api/monkey/<string:guid>/<string:config_format>" route. Also considering not
|
||||||
|
# flattening the config in the first place.
|
||||||
if config_format == "legacy":
|
if config_format == "legacy":
|
||||||
ConfigService.decrypt_flat_config(monkey_json["config"])
|
ConfigService.decrypt_flat_config(monkey_json["config"])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue