From f0b82afde49526b9407d2f58dbc80f0c9b512f7a Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Wed, 8 Feb 2023 06:02:25 -0500 Subject: [PATCH] machine: remove unnecessary supervisord handlers Signed-off-by: Eric Callahan --- moonraker/components/machine.py | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/moonraker/components/machine.py b/moonraker/components/machine.py index 49901f3..518c443 100644 --- a/moonraker/components/machine.py +++ b/moonraker/components/machine.py @@ -1254,20 +1254,6 @@ class SupervisordCliProvider(BaseProvider): pstats: ProcStats = self.server.lookup_component('proc_stats') pstats.register_stat_callback(self._update_service_status) - async def shutdown(self) -> None: - raise self.server.error( - "[machine]: Supervisord manager can not process SHUTDOWN." - "Please try KILL container or stop Supervisord via ssh terminal." - ) - return - - async def reboot(self) -> None: - raise self.server.error( - "[machine]: Supervisord manager can not process REBOOT." - "Please try KILL container or stop Supervisord via ssh terminal." - ) - return - async def do_service_action( self, action: str, service_name: str ) -> None: @@ -1276,19 +1262,6 @@ class SupervisordCliProvider(BaseProvider): f"{action} {service_name}", timeout=6. ) - async def check_virt_status(self) -> Dict[str, Any]: - virt_id = virt_type = "none" - if ( - os.path.exists("/.dockerenv") or - os.path.exists("/.dockerinit") - ): - virt_id = "docker" - virt_type = "container" - return { - 'virt_type': virt_type, - 'virt_identifier': virt_id - } - async def _exec_supervisorctl_command( self, args: str,