Island: Don't use Field() for simple defaults in Machine

This commit is contained in:
Mike Salvatore 2022-08-30 09:34:17 -04:00
parent b538842e84
commit 81128a4842
1 changed files with 3 additions and 3 deletions

View File

@ -20,16 +20,16 @@ class Machine(MutableInfectionMonkeyBaseModel):
hardware_id: Optional[HardwareID]
"""An identifier generated by the agent that uniquely identifies a machine"""
network_interfaces: Sequence[IPv4Interface] = Field(default_factory=tuple)
network_interfaces: Sequence[IPv4Interface] = tuple()
"""The machine's networking interfaces"""
operating_system: Optional[OperatingSystem]
"""The operating system the machine is running"""
operating_system_version: str = Field(default="")
operating_system_version: str = ""
"""The specific version of the operating system the machine is running"""
hostname: str = Field(default="")
hostname: str = ""
"""The hostname of the machine"""
_make_immutable_sequence = validator("network_interfaces", pre=True, allow_reuse=True)(