mirror of
https://github.com/cuigh/swirl
synced 2024-12-27 22:32:49 +00:00
Fix #29
This commit is contained in:
parent
9f028a3ce4
commit
9028e8ad44
@ -253,8 +253,7 @@ func createNetworks(ctx context.Context, cli *client.Client, namespace compose.N
|
||||
existingNetworkMap[network.Name] = network
|
||||
}
|
||||
|
||||
for internalName, createOpts := range networks {
|
||||
name := namespace.Scope(internalName)
|
||||
for name, createOpts := range networks {
|
||||
if _, exists := existingNetworkMap[name]; exists {
|
||||
continue
|
||||
}
|
||||
@ -265,7 +264,7 @@ func createNetworks(ctx context.Context, cli *client.Client, namespace compose.N
|
||||
|
||||
mgr.Logger().Infof("Creating network %s", name)
|
||||
if _, err = cli.NetworkCreate(ctx, name, createOpts); err != nil {
|
||||
return errors.Wrap(err, "failed to create network "+internalName)
|
||||
return errors.Wrap(err, "failed to create network "+name)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
2
main.go
2
main.go
@ -27,7 +27,7 @@ func main() {
|
||||
misc.BindOptions()
|
||||
|
||||
app.Name = "Swirl"
|
||||
app.Version = "0.8.4"
|
||||
app.Version = "0.8.5"
|
||||
app.Desc = "A web management UI for Docker, focused on swarm cluster"
|
||||
app.Action = func(ctx *app.Context) error {
|
||||
err := config.UnmarshalOption("swirl", &misc.Options)
|
||||
|
Loading…
Reference in New Issue
Block a user