From ac63740fb2df1e8656297b06a640c0234488e227 Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Fri, 28 Aug 2015 19:47:42 +0200 Subject: [PATCH] Fixed regression on scw create (#142) --- README.md | 2 +- pkg/cli/cmd_create.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 072f37e599..eed2e5e2af 100644 --- a/README.md +++ b/README.md @@ -1132,7 +1132,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address' #### Fixes -* No entry +* Fixed regression on scw create ([#142](https://github.com/scaleway/scaleway-cli/issues/142)) View full [commits list](https://github.com/scaleway/scaleway-cli/compare/v1.4.0...master) diff --git a/pkg/cli/cmd_create.go b/pkg/cli/cmd_create.go index 5bf16a2e3f..90798794c5 100644 --- a/pkg/cli/cmd_create.go +++ b/pkg/cli/cmd_create.go @@ -57,11 +57,11 @@ func runCreate(cmd *Command, rawArgs []string) error { TmpSSHKey: createTmpSSHKey, } - if len(runCreateEnv) > 0 { - args.Tags = strings.Split(runCreateEnv, " ") + if len(createEnv) > 0 { + args.Tags = strings.Split(createEnv, " ") } - if len(runCreateVolume) > 0 { - args.Volumes = strings.Split(runCreateVolume, " ") + if len(createVolume) > 0 { + args.Volumes = strings.Split(createVolume, " ") } ctx := cmd.GetContext(rawArgs) return commands.RunCreate(ctx, args)