mirror of https://github.com/docker/docs.git
Merge pull request #577 from andrewwatson/fix-576-err-return
Fixes #576 by return the err
This commit is contained in:
commit
772255dd88
|
@ -156,7 +156,7 @@ func NewDriver(machineName string, storePath string, caCert string, privateKey s
|
|||
func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error {
|
||||
region, err := validateAwsRegion(flags.String("amazonec2-region"))
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
image := flags.String("amazonec2-ami")
|
||||
|
|
Loading…
Reference in New Issue