增加必要的数据记录
This commit is contained in:
@@ -69,7 +69,10 @@ pub fn load_rtr_ssh_runtime_config(
|
||||
};
|
||||
let password = password.map(str::trim).filter(|value| !value.is_empty());
|
||||
if matches!(auth_mode, SshAuthMode::Password | SshAuthMode::Both) && password.is_none() {
|
||||
bail!("SSH auth mode '{}' requires non-empty password", auth_mode.as_str());
|
||||
bail!(
|
||||
"SSH auth mode '{}' requires non-empty password",
|
||||
auth_mode.as_str()
|
||||
);
|
||||
}
|
||||
|
||||
let mut methods = MethodSet::empty();
|
||||
|
||||
Reference in New Issue
Block a user