Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit b6aed3f

Browse files
committed
communicator/ssh: fix typos travis didn't catch
I think rebasing and splitting got me into a weird state. This should fix the build failures on master.
1 parent c897d0a commit b6aed3f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

communicator/ssh/provisioner.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ func parseConnectionInfo(s *terraform.InstanceState) (*connectionInfo, error) {
9898
// Load deprecated fields; we can handle either path or contents in
9999
// underlying implementation.
100100
if connInfo.PrivateKey == "" && connInfo.KeyFile != "" {
101-
connInfo.PrivateKey = conninfo.KeyFile
101+
connInfo.PrivateKey = connInfo.KeyFile
102102
}
103103
if connInfo.BastionPrivateKey == "" && connInfo.BastionKeyFile != "" {
104-
connInfo.BastionPrivateKey = conninfo.BastionKeyFile
104+
connInfo.BastionPrivateKey = connInfo.BastionKeyFile
105105
}
106106

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

195-
if opts.keyFile != "" {
195+
if opts.privateKey != "" {
196196
pubKeyAuth, err := readPrivateKey(opts.privateKey)
197197
if err != nil {
198198
return nil, err

0 commit comments

Comments
 (0)