helper/communicator: default bastion PK to normal PK

This commit is contained in:
Mitchell Hashimoto 2015-06-17 22:33:59 +02:00
parent cbaaf0da52
commit 6cdc17dda4
1 changed files with 4 additions and 0 deletions

View File

@ -86,6 +86,10 @@ func (c *Config) prepareSSH(ctx *interpolate.Context) []error {
if c.SSHBastionPort == 0 { if c.SSHBastionPort == 0 {
c.SSHBastionPort = 22 c.SSHBastionPort = 22
} }
if c.SSHBastionPrivateKey == "" && c.SSHPrivateKey != "" {
c.SSHBastionPrivateKey = c.SSHPrivateKey
}
} }
// Validation // Validation