Island: Rename Signal -> Signals in cc/resources/agent_signals.py

This commit is contained in:
Shreya Malviya 2022-09-23 13:29:58 +05:30 committed by Mike Salvatore
parent 0775449fa9
commit dccef0efa5
1 changed files with 2 additions and 2 deletions

View File

@ -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: