Skip to content

Commit

Permalink
config may return null-hostname for wildcard configs
Browse files Browse the repository at this point in the history
  • Loading branch information
bodewig committed Aug 23, 2020
1 parent 569e428 commit f891c4b
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -277,7 +277,9 @@ protected void loadSshConfig() throws BuildException {
throw new BuildException("Failed to load the SSH configuration file " + sshConfig, e);
}

host = config.getHostname();
if (config.getHostname() != null) {
host = config.getHostname();
}

if (userInfo.getName() == null) {
userInfo.setName(config.getUser());
Expand Down

0 comments on commit f891c4b

Please sign in to comment.