Common: Add default to source in AbstractAgentEvent

This commit is contained in:
Ilija Lazoroski 2022-09-27 14:32:18 +02:00 committed by Shreya Malviya
parent 89397d8cbd
commit b1b9eb394e
1 changed files with 1 additions and 1 deletions

View File

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