From 78d5094f9067205ee4a3e56cc487f5004414351a Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Fri, 9 Sep 2022 17:43:35 +0000 Subject: [PATCH] Common: Use int instead of UUID in AbstractAgentEvent --- monkey/common/events/abstract_agent_event.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/monkey/common/events/abstract_agent_event.py b/monkey/common/events/abstract_agent_event.py index 89f515187..a851d9b01 100644 --- a/monkey/common/events/abstract_agent_event.py +++ b/monkey/common/events/abstract_agent_event.py @@ -3,7 +3,7 @@ from abc import ABC from dataclasses import dataclass, field from ipaddress import IPv4Address from typing import FrozenSet, Union -from uuid import UUID, getnode +from uuid import getnode @dataclass(frozen=True) @@ -22,7 +22,7 @@ class AbstractAgentEvent(ABC): :param tags: The set of tags associated with the event """ - source: UUID = field(default_factory=getnode) - target: Union[UUID, IPv4Address, None] = field(default=None) + source: int = field(default_factory=getnode) + target: Union[int, IPv4Address, None] = field(default=None) timestamp: float = field(default_factory=time.time) tags: FrozenSet[str] = field(default_factory=frozenset)