Skip to content

Commit

Permalink
Fixed regression on scw create (scaleway#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Aug 28, 2015
1 parent c44bdf9 commit ac63740
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
8 changes: 4 additions & 4 deletions pkg/cli/cmd_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ac63740

Please sign in to comment.