MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / check_api_key

Method check_api_key

mod/project/node/nodeutil/base.py:1366–1372  ·  view source on GitHub ↗
(cls, node: Node)

Source from the content-addressed store, hash-verified

1364
1365 @classmethod
1366 def check_api_key(cls, node: Node) -> str:
1367 public.print_log(node.address, node.api_key)
1368 lpc = OnePanelApiClient(node.address, node.api_key)
1369 if lpc.test_ver():
1370 node.lpver = lpc.ver
1371 return ""
1372 return "1Panel节点测试连接失败"
1373
1374 def test_conn(self) -> str:
1375 if self.lpc.test_ver():

Callers

nothing calls this directly

Calls 3

test_verMethod · 0.95
OnePanelApiClientClass · 0.85
print_logMethod · 0.45

Tested by

no test coverage detected