Skip to content

Commit

Permalink
No need to override GetSSHKeyPath, and it puts id_rsa outside of Stor…
Browse files Browse the repository at this point in the history
…ePath
  • Loading branch information
fabiorauber committed Aug 8, 2018
1 parent 7ca980a commit 043c9ce
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions xenserver/xenserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,6 @@ func (d *Driver) GetSSHHostname() (string, error) {
return d.GetIP()
}

func (d *Driver) GetSSHKeyPath() string {
return filepath.Join(d.StorePath, "id_rsa")
}

func (d *Driver) GetSSHPort() (int, error) {
if d.SSHPort == 0 {
d.SSHPort = 22
Expand Down Expand Up @@ -799,7 +795,7 @@ func (d *Driver) setMachineNameIfNotSet() {
}

func (d *Driver) sshKeyPath() string {
return filepath.Join(d.StorePath, "id_rsa")
return d.GetSSHKeyPath()
}

func (d *Driver) publicSSHKeyPath() string {
Expand Down

0 comments on commit 043c9ce

Please sign in to comment.