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
|
||||
}
|
||||
|
||||
func (d *FakeDriver) GetSSHAddress() (string, error) {
|
||||
func (d *FakeDriver) GetSSHHostname() (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
|
|
|
@ -419,7 +419,7 @@ func (d *Driver) GetState() (state.State, error) {
|
|||
return state.None, nil
|
||||
}
|
||||
|
||||
func (d *Driver) GetSSHAddress() (string, error) {
|
||||
func (d *Driver) GetSSHHostname() (string, error) {
|
||||
// TODO: use @nathanleclaire retry func here (ehazlett)
|
||||
return d.GetIP()
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ type Driver interface {
|
|||
GetMachineName() string
|
||||
|
||||
// GetSSHHostname returns hostname for use with ssh
|
||||
GetSSHAddress() (string, error)
|
||||
GetSSHHostname() (string, error)
|
||||
|
||||
// GetSSHKeyPath returns key path for use with ssh
|
||||
GetSSHKeyPath() string
|
||||
|
|
|
@ -62,7 +62,7 @@ func (d *Driver) GetMachineName() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func (d *Driver) GetSSHAddress() (string, error) {
|
||||
func (d *Driver) GetSSHHostname() (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue