mirror of https://github.com/docker/docs.git
Fixes #576 by return the err
Signed-off-by: Andrew Watson <andrewmoorewatson@gmail.com>
This commit is contained in:
parent
75e3e8e956
commit
9ff6dbe0b2
|
|
@ -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