fix dnf prompt and ssh user (#1126)

This commit is contained in:
Shigechika AIKAWA
2021-01-14 08:22:06 +09:00
committed by GitHub
parent 554b6345a2
commit fca102edba
2 changed files with 2 additions and 3 deletions

View File

@@ -155,8 +155,7 @@ func setDefaultIfEmpty(server *ServerInfo, d ServerInfo) error {
if server.User == "" {
if Conf.Default.User != "" {
server.User = Conf.Default.User
}
if server.Port != "local" {
} else {
return xerrors.Errorf("server.user is empty")
}
}