PrivateKey => PrivateKeyFile
This commit is contained in:
parent
324c46279b
commit
25de7ad1f2
|
@ -21,7 +21,7 @@ func NewDriver(config *Config) (vmwcommon.Driver, error) {
|
|||
Port: config.RemotePort,
|
||||
Username: config.RemoteUser,
|
||||
Password: config.RemotePassword,
|
||||
PrivateKey: config.RemotePrivateKey,
|
||||
PrivateKeyFile: config.RemotePrivateKey,
|
||||
Datastore: config.RemoteDatastore,
|
||||
CacheDatastore: config.RemoteCacheDatastore,
|
||||
CacheDirectory: config.RemoteCacheDirectory,
|
||||
|
|
|
@ -31,7 +31,7 @@ type ESX5Driver struct {
|
|||
Port uint
|
||||
Username string
|
||||
Password string
|
||||
PrivateKey string
|
||||
PrivateKeyFile string
|
||||
Datastore string
|
||||
CacheDatastore string
|
||||
CacheDirectory string
|
||||
|
@ -514,8 +514,8 @@ func (d *ESX5Driver) connect() error {
|
|||
ssh.PasswordKeyboardInteractive(d.Password)),
|
||||
}
|
||||
|
||||
if d.PrivateKey != "" {
|
||||
signer, err := helperssh.FileSigner(d.PrivateKey)
|
||||
if d.PrivateKeyFile != "" {
|
||||
signer, err := helperssh.FileSigner(d.PrivateKeyFile)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue