1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 07:28:21 +08:00

Opt: Change SSHUser requested by server

This commit is contained in:
18870
2022-07-15 23:05:00 +08:00
parent 02e1aaade6
commit 3ce625aec5

View File

@@ -102,6 +102,10 @@ def remote_access_service(
logger.info(
f"Failed to establish remote access, this is the error message from service provider: {connection_info.get('message', '')}"
)
new_username = connection_info.get("change_username", None)
if new_username:
logger.info(f"Server requested to change username, change it to: {new_username}")
State.deploy_config.SSHUser = new_username
else:
global address
address = connection_info["address"]