From 043c9ce290dd7ee0c549529a6bbf0d9f7ea6e5d6 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Wed, 8 Aug 2018 10:20:29 -0300 Subject: [PATCH] No need to override GetSSHKeyPath, and it puts id_rsa outside of StorePath --- xenserver/xenserver.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xenserver/xenserver.go b/xenserver/xenserver.go index ff4733a..884d062 100644 --- a/xenserver/xenserver.go +++ b/xenserver/xenserver.go @@ -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 @@ -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 {