Check if both SSH proxy and basiton are configured

This commit is contained in:
Pawel Kilar 2017-10-14 21:38:44 +01:00
parent 01ff96b341
commit 17beb1d7ad
1 changed files with 4 additions and 0 deletions

View File

@ -184,6 +184,10 @@ func (c *Config) prepareSSH(ctx *interpolate.Context) []error {
c.SSHFileTransferMethod))
}
if c.SSHBastionHost != "" && c.SSHProxyHost != "" {
errs = append(errs, errors.New("please specify either ssh_bastion_host or ssh_proxy_host, not both"))
}
return errs
}