mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 09:40:30 +08:00
false on dbus error
This commit is contained in:
parent
a55fc88e3c
commit
0b1dffb942
@ -65,7 +65,7 @@ class ExtrasInfoSubmanager(BaseInfoSubmanager):
|
|||||||
daemon = extras.get("daemon", "")
|
daemon = extras.get("daemon", "")
|
||||||
if isinstance(daemon, str) and daemon.strip():
|
if isinstance(daemon, str) and daemon.strip():
|
||||||
status = get_service_status(daemon)
|
status = get_service_status(daemon)
|
||||||
(extras["enabled"], extras["started"]) = (status if status is not None else (True, True))
|
(extras["enabled"], extras["started"]) = (status if status is not None else (False, False))
|
||||||
|
|
||||||
def __rewrite_app_port(self, extras: Dict) -> None:
|
def __rewrite_app_port(self, extras: Dict) -> None:
|
||||||
port_path = extras.get("port", "")
|
port_path = extras.get("port", "")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user