Skip to content

Commit

Permalink
communicator/ssh: fix typos travis didn't catch
Browse files Browse the repository at this point in the history
I think rebasing and splitting got me into a weird state. This should
fix the build failures on master.
  • Loading branch information
phinze committed Nov 12, 2015
1 parent c897d0a commit b6aed3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions communicator/ssh/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ func parseConnectionInfo(s *terraform.InstanceState) (*connectionInfo, error) {
// Load deprecated fields; we can handle either path or contents in
// underlying implementation.
if connInfo.PrivateKey == "" && connInfo.KeyFile != "" {
connInfo.PrivateKey = conninfo.KeyFile
connInfo.PrivateKey = connInfo.KeyFile
}
if connInfo.BastionPrivateKey == "" && connInfo.BastionKeyFile != "" {
connInfo.BastionPrivateKey = conninfo.BastionKeyFile
connInfo.BastionPrivateKey = connInfo.BastionKeyFile
}

// Default all bastion config attrs to their non-bastion counterparts
Expand Down Expand Up @@ -192,7 +192,7 @@ func buildSSHClientConfig(opts sshClientConfigOpts) (*ssh.ClientConfig, error) {
User: opts.user,
}

if opts.keyFile != "" {
if opts.privateKey != "" {
pubKeyAuth, err := readPrivateKey(opts.privateKey)
if err != nil {
return nil, err
Expand Down

0 comments on commit b6aed3f

Please sign in to comment.