Refactor SSHExternal flag so it isn't quietly ignored on Windows

This commit is contained in:
Oliver Bristow
2016-11-14 00:55:33 +00:00
parent 6d82ad32a9
commit f648b5ad0a
3 changed files with 12 additions and 8 deletions

View File

@@ -145,6 +145,10 @@ func (p *PrepareCmd) Execute(_ context.Context, f *flag.FlagSet, _ ...interface{
c.Conf.Debug = p.debug
c.Conf.SSHExternal = p.sshExternal
logrus.Info("Validating Config...")
if !c.Conf.Validate() {
return subcommands.ExitUsageError
}
// Set up custom logger
logger := util.NewCustomLogger(c.ServerInfo{})