From dccef0efa5086887d84f68375274afca569b6389 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Fri, 23 Sep 2022 13:29:58 +0530 Subject: [PATCH] Island: Rename Signal -> Signals in cc/resources/agent_signals.py --- monkey/monkey_island/cc/resources/agent_signals.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/resources/agent_signals.py b/monkey/monkey_island/cc/resources/agent_signals.py index 8f3b800d4..87e98fbee 100644 --- a/monkey/monkey_island/cc/resources/agent_signals.py +++ b/monkey/monkey_island/cc/resources/agent_signals.py @@ -5,7 +5,7 @@ from json import JSONDecodeError from flask import request from monkey_island.cc.event_queue import IIslandEventQueue, IslandEventTopic -from monkey_island.cc.models import AgentSignals as Signal +from monkey_island.cc.models import AgentSignals as Signals from monkey_island.cc.resources.AbstractResource import AbstractResource logger = logging.getLogger(__name__) @@ -22,7 +22,7 @@ class AgentSignals(AbstractResource): def post(self): try: - signal = Signal(**request.json) + signal = Signals(**request.json) # We allow an empty timestamp. However, should the agent be able to send us one? if signal.terminate is None: