refactored sshconnection initialization

it was needed, okay?
This commit is contained in:
Wyatt J. Miller 2019-08-16 22:00:36 -04:00
parent 659c9de867
commit 1755cb0f8c

11
ssh.go
View File

@ -31,11 +31,12 @@ type SSHPush []*ssh.Client
type SSHSuccess []error
func initializeConnection(config Configuration) (SSHConnection, *ssh.ClientConfig) {
var sshConn SSHConnection
sshConn.Username = config.Username
sshConn.Password = config.Password
sshConn.Port = config.Port
sshConn.Hosts = config.Hosts
sshConn := SSHConnection{
Username: config.Username,
Password: config.Password,
Port: config.Port,
Hosts: config.Hosts,
}
sshConfig := &ssh.ClientConfig{
User: sshConn.Username,