Island: Use HardwareId in Machine model

This commit is contained in:
Mike Salvatore 2022-08-22 11:14:25 -04:00
parent f418571d93
commit acc158db44
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ from typing import Optional, Sequence
from pydantic import Field, PositiveInt, validator
from common import OperatingSystem
from common.types import HardwareID
from .base_models import MutableBaseModel
from .transforms import make_immutable_sequence
@ -13,7 +14,7 @@ MachineID = PositiveInt
class Machine(MutableBaseModel):
id: MachineID = Field(..., allow_mutation=False)
hardware_id: Optional[PositiveInt]
hardware_id: Optional[HardwareID]
network_interfaces: Sequence[IPv4Interface]
operating_system: OperatingSystem
operating_system_version: str