From 2870df40da81caa6ac9ba3456c0f00e856610553 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 24 May 2022 19:15:25 -0400 Subject: [PATCH] Island: Add TODO to resources.monkey.Monkey.patch() --- monkey/monkey_island/cc/resources/monkey.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/monkey/monkey_island/cc/resources/monkey.py b/monkey/monkey_island/cc/resources/monkey.py index 99f45f73d..c8ff52468 100644 --- a/monkey/monkey_island/cc/resources/monkey.py +++ b/monkey/monkey_island/cc/resources/monkey.py @@ -40,6 +40,10 @@ class Monkey(flask_restful.Resource): # Used by monkey. can't secure. @TestTelemStore.store_exported_telem def patch(self, guid): + + # TODO: This endpoint appears to be doing 3 things, although only one of them is used + # (config_error). The WormConfiguration will be removed in #1960. We should consider + # removing this endpoint monkey_json = json.loads(request.data) update = {"$set": {"modifytime": datetime.now()}} monkey = NodeService.get_monkey_by_guid(guid)