mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 01:51:53 +08:00
ignored protected-access for _unpack()
This commit is contained in:
@@ -41,7 +41,6 @@ def main(argv: Optional[List[str]]=None) -> None:
|
||||
argv=argv,
|
||||
)[2].ipmi
|
||||
|
||||
# pylint: disable=protected-access
|
||||
IpmiServer(
|
||||
auth_manager=IpmiAuthManager(**config.auth._unpack()),
|
||||
kvmd=KvmdClient(
|
||||
|
||||
@@ -43,8 +43,6 @@ from .server import KvmdServer
|
||||
|
||||
# =====
|
||||
def main(argv: Optional[List[str]]=None) -> None:
|
||||
# pylint: disable=protected-access
|
||||
|
||||
config = init(
|
||||
prog="kvmd",
|
||||
description="The main Pi-KVM daemon",
|
||||
|
||||
@@ -44,7 +44,6 @@ def main(argv: Optional[List[str]]=None) -> None:
|
||||
|
||||
user_agent = htclient.make_user_agent("KVMD-VNC")
|
||||
|
||||
# pylint: disable=protected-access
|
||||
VncServer(
|
||||
host=config.server.host,
|
||||
port=config.server.port,
|
||||
|
||||
@@ -80,7 +80,7 @@ class Section(dict):
|
||||
for (key, value) in self.items():
|
||||
if key not in ignore:
|
||||
if isinstance(value, Section):
|
||||
unpacked[key] = value._unpack() # pylint: disable=protected-access
|
||||
unpacked[key] = value._unpack()
|
||||
else: # Option
|
||||
unpacked[self._get_unpack_as(key)] = value # pylint: disable=protected-access
|
||||
return unpacked
|
||||
|
||||
Reference in New Issue
Block a user