From b1b9eb394e0e27da5aee7d784308523dfd273549 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 27 Sep 2022 14:32:18 +0200 Subject: [PATCH] Common: Add default to source in AbstractAgentEvent --- monkey/common/agent_events/abstract_agent_event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/common/agent_events/abstract_agent_event.py b/monkey/common/agent_events/abstract_agent_event.py index 8c3655602..b7719d03e 100644 --- a/monkey/common/agent_events/abstract_agent_event.py +++ b/monkey/common/agent_events/abstract_agent_event.py @@ -24,7 +24,7 @@ class AbstractAgentEvent(InfectionMonkeyBaseModel, ABC): :param tags: The set of tags associated with the event """ - source: AgentID + source: AgentID = Field(default=None) target: Union[MachineID, IPv4Address, None] = Field(default=None) timestamp: float = Field(default_factory=time.time) tags: FrozenSet[str] = Field(default_factory=frozenset)