Browse Source

No need to override GetSSHKeyPath, and it puts id_rsa outside of StorePath

getsshkeypath_pr
Fábio Kaiser Rauber 6 years ago
parent
commit
b3f07ae337
  1. 6
      xenserver/xenserver.go

6
xenserver/xenserver.go

@ -142,10 +142,6 @@ func (d *Driver) GetSSHHostname() (string, error) {
return d.GetIP() return d.GetIP()
} }
func (d *Driver) GetSSHKeyPath() string {
return filepath.Join(d.StorePath, "id_rsa")
}
func (d *Driver) GetSSHPort() (int, error) { func (d *Driver) GetSSHPort() (int, error) {
if d.SSHPort == 0 { if d.SSHPort == 0 {
d.SSHPort = 22 d.SSHPort = 22
@ -732,7 +728,7 @@ func (d *Driver) setMachineNameIfNotSet() {
} }
func (d *Driver) sshKeyPath() string { func (d *Driver) sshKeyPath() string {
return filepath.Join(d.StorePath, "id_rsa") return d.GetSSHKeyPath()
} }
func (d *Driver) publicSSHKeyPath() string { func (d *Driver) publicSSHKeyPath() string {

Loading…
Cancel
Save