Island: Move MachineID to common

This commit is contained in:
Mike Salvatore 2022-09-14 12:53:42 -04:00
parent 99b0f5bcd6
commit 1b2b316e1f
3 changed files with 5 additions and 4 deletions

View File

@ -5,3 +5,4 @@ from typing_extensions import TypeAlias
AgentID: TypeAlias = UUID
HardwareID: TypeAlias = PositiveInt
MachineID: TypeAlias = PositiveInt

View File

@ -9,7 +9,8 @@ from .pba_results import PbaResults
from monkey_island.cc.models.report.report import Report
from .simulation import Simulation, IslandMode
from .user_credentials import UserCredentials
from .machine import Machine, MachineID
from common.types import MachineID
from .machine import Machine
from .communication_type import CommunicationType
from .node import Node
from common.types import AgentID

View File

@ -1,15 +1,14 @@
from ipaddress import IPv4Interface
from typing import Optional, Sequence
from pydantic import Field, PositiveInt, validator
from typing_extensions import TypeAlias
from pydantic import Field, validator
from common import OperatingSystem
from common.base_models import MutableInfectionMonkeyBaseModel
from common.transforms import make_immutable_sequence
from common.types import HardwareID
MachineID: TypeAlias = PositiveInt
from . import MachineID
class Machine(MutableInfectionMonkeyBaseModel):