1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-03-11 00:58:39 +03:00

Cleaned up IPMachinesUserService

This commit is contained in:
Adolfo Gómez García 2024-10-18 17:55:02 +02:00
parent 4388ed0f1b
commit 051b23eb92
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23

View File

@ -35,7 +35,7 @@ import logging
import typing
from uds.core import services, types
from uds.core.util import autoserializable, auto_attributes
from uds.core.util import autoserializable
# Not imported at runtime, just for type checking
if typing.TYPE_CHECKING:
@ -45,19 +45,6 @@ if typing.TYPE_CHECKING:
logger = logging.getLogger(__name__)
# This class is used for serialization of old data
class OldIPSerialData(auto_attributes.AutoAttributes):
_ip: str
_reason: str
_state: str
def __init__(self) -> None:
auto_attributes.AutoAttributes.__init__(self, ip=str, reason=str, state=str)
self._ip = ''
self._reason = ''
self._state = types.states.TaskState.FINISHED
class IPMachinesUserService(services.UserService, autoserializable.AutoSerializable):
suggested_delay = 10