Fix broken error handling when creating network

This commit is contained in:
Dane Everitt 2021-01-21 20:45:56 -08:00
parent 6a286fb444
commit f7788e10a0
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -42,9 +42,10 @@ func ConfigureDocker(ctx context.Context) error {
if err := createDockerNetwork(ctx, cli); err != nil { if err := createDockerNetwork(ctx, cli); err != nil {
return err return err
} }
} } else {
return err return err
} }
}
config.Update(func(c *config.Configuration) { config.Update(func(c *config.Configuration) {
c.Docker.Network.Driver = resource.Driver c.Docker.Network.Driver = resource.Driver