Agent: Use HardwareID as the return type for get_machine_id()

This commit is contained in:
Mike Salvatore 2022-09-14 12:57:40 -04:00
parent f7ab5c5dd8
commit 8faf8de4dd
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
from uuid import UUID, getnode, uuid4
from common.types import HardwareID
def get_agent_id() -> UUID:
"""
@ -17,6 +19,6 @@ def get_agent_id() -> UUID:
get_agent_id._id = None
def get_machine_id() -> int:
def get_machine_id() -> HardwareID:
"""Get an integer that uniquely defines the machine the agent is running on"""
return getnode()