From 9028e8ad445a1e501a11e5bd13491c270911c151 Mon Sep 17 00:00:00 2001 From: cuigh Date: Tue, 30 Apr 2019 14:07:11 +0800 Subject: [PATCH] Fix #29 --- biz/docker/stack.go | 5 ++--- main.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/biz/docker/stack.go b/biz/docker/stack.go index cab02ee..2d87d00 100644 --- a/biz/docker/stack.go +++ b/biz/docker/stack.go @@ -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 diff --git a/main.go b/main.go index 0fb74e2..9f9eda9 100644 --- a/main.go +++ b/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)