forked from p15670423/monkey
Island: Don't use Field() for simple defaults in Machine
This commit is contained in:
parent
b538842e84
commit
81128a4842
|
@ -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)(
|
||||
|
|
Loading…
Reference in New Issue