mirror of https://github.com/docker/docs.git
revert to GetSSHHostname based on feedback from @nathanleclaire
Signed-off-by: Evan Hazlett <ejhazlett@gmail.com>
This commit is contained in:
parent
2b6daa29ed
commit
c76d1a253f
|
@ -52,7 +52,7 @@ func (d *FakeDriver) GetIP() (string, error) {
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *FakeDriver) GetSSHAddress() (string, error) {
|
func (d *FakeDriver) GetSSHHostname() (string, error) {
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -419,7 +419,7 @@ func (d *Driver) GetState() (state.State, error) {
|
||||||
return state.None, nil
|
return state.None, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Driver) GetSSHAddress() (string, error) {
|
func (d *Driver) GetSSHHostname() (string, error) {
|
||||||
// TODO: use @nathanleclaire retry func here (ehazlett)
|
// TODO: use @nathanleclaire retry func here (ehazlett)
|
||||||
return d.GetIP()
|
return d.GetIP()
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ type Driver interface {
|
||||||
GetMachineName() string
|
GetMachineName() string
|
||||||
|
|
||||||
// GetSSHHostname returns hostname for use with ssh
|
// GetSSHHostname returns hostname for use with ssh
|
||||||
GetSSHAddress() (string, error)
|
GetSSHHostname() (string, error)
|
||||||
|
|
||||||
// GetSSHKeyPath returns key path for use with ssh
|
// GetSSHKeyPath returns key path for use with ssh
|
||||||
GetSSHKeyPath() string
|
GetSSHKeyPath() string
|
||||||
|
|
|
@ -62,7 +62,7 @@ func (d *Driver) GetMachineName() string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *Driver) GetSSHAddress() (string, error) {
|
func (d *Driver) GetSSHHostname() (string, error) {
|
||||||
return "", nil
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
host.go
2
host.go
|
@ -525,7 +525,7 @@ func (h *Host) Provision() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (h *Host) GetSSHCommand(args ...string) (*exec.Cmd, error) {
|
func (h *Host) GetSSHCommand(args ...string) (*exec.Cmd, error) {
|
||||||
addr, err := h.Driver.GetSSHAddress()
|
addr, err := h.Driver.GetSSHHostname()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue