From e8efdd64d13273b1ff3571ad201141aa3b348166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20S=C3=A1nchez-Gallego?= Date: Tue, 26 Mar 2024 00:42:34 +0000 Subject: [PATCH] Add _check_internal and _troubleshoot_internal --- src/lvmnps/actor/actor.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lvmnps/actor/actor.py b/src/lvmnps/actor/actor.py index faf93b6..17d90da 100644 --- a/src/lvmnps/actor/actor.py +++ b/src/lvmnps/actor/actor.py @@ -13,7 +13,7 @@ from typing import TYPE_CHECKING -from lvmopstools.actor import LVMActor +from lvmopstools.actor import ErrorCodes, LVMActor from clu import Command from sdsstools.configuration import Configuration @@ -104,5 +104,15 @@ async def stop(self): return await super().stop() + async def _check_internal(self): + return await super()._check_internal() + + async def _troubleshoot_internal( + self, + error_code: ErrorCodes, + exception: Exception | None = None, + ): + return await super()._troubleshoot_internal(error_code, exception) + NPSCommand = Command[NPSActor]