Common: Remove default from AbstractAgentEvent source field

This commit is contained in:
Ilija Lazoroski 2022-09-27 20:58:54 +02:00 committed by Shreya Malviya
parent 9ada95c126
commit a44f763fab
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 :param tags: The set of tags associated with the event
""" """
source: AgentID = Field(default=None) source: AgentID
target: Union[MachineID, IPv4Address, None] = Field(default=None) target: Union[MachineID, IPv4Address, None] = Field(default=None)
timestamp: float = Field(default_factory=time.time) timestamp: float = Field(default_factory=time.time)
tags: FrozenSet[str] = Field(default_factory=frozenset) tags: FrozenSet[str] = Field(default_factory=frozenset)