Agent: Use HardwareID as the return type for get_machine_id()
This commit is contained in:
parent
f7ab5c5dd8
commit
8faf8de4dd
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue