From 81128a4842ced999f229cc6ad45923e7892846aa Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Tue, 30 Aug 2022 09:34:17 -0400 Subject: [PATCH] Island: Don't use Field() for simple defaults in Machine --- monkey/monkey_island/cc/models/machine.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/monkey_island/cc/models/machine.py b/monkey/monkey_island/cc/models/machine.py index 4c5925390..5a8c5e12b 100644 --- a/monkey/monkey_island/cc/models/machine.py +++ b/monkey/monkey_island/cc/models/machine.py @@ -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)(