mirror of https://github.com/docker/docs.git
Better naming & cleanup
Signed-off-by: Jean-Laurent de Morlhon <jeanlaurent@morlhon.net>
This commit is contained in:
parent
b41ead67ec
commit
45cf74508a
|
|
@ -575,7 +575,6 @@ func (d *Driver) GetState() (state.State, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetSSHHostname -
|
|
||||||
func (d *Driver) GetSSHHostname() (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()
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,6 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
|
||||||
errInvalidRegion = errors.New("invalid region specified")
|
|
||||||
errNoVpcs = errors.New("No VPCs found in region")
|
|
||||||
errMachineFailure = errors.New("Machine failed to start")
|
|
||||||
errNoIP = errors.New("No IP Address associated with the instance")
|
|
||||||
errComplete = errors.New("Complete")
|
|
||||||
)
|
|
||||||
|
|
||||||
type region struct {
|
type region struct {
|
||||||
AmiId string
|
AmiId string
|
||||||
}
|
}
|
||||||
|
|
@ -49,5 +41,5 @@ func validateAwsRegion(region string) (string, error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return "", errInvalidRegion
|
return "", errors.New("invalid region specified")
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue