Skip to content

Commit eda720c

Browse files
committed
Merge pull request #143 from moul/fix-142
Fixed regression on scw create (#142)
2 parents c44bdf9 + ac63740 commit eda720c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ $ scw inspect myserver | jq '.[0].public_ip.address'
11321132

11331133
#### Fixes
11341134

1135-
* No entry
1135+
* Fixed regression on scw create ([#142](https://github.com/scaleway/scaleway-cli/issues/142))
11361136

11371137
View full [commits list](https://github.com/scaleway/scaleway-cli/compare/v1.4.0...master)
11381138

pkg/cli/cmd_create.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ func runCreate(cmd *Command, rawArgs []string) error {
5757
TmpSSHKey: createTmpSSHKey,
5858
}
5959

60-
if len(runCreateEnv) > 0 {
61-
args.Tags = strings.Split(runCreateEnv, " ")
60+
if len(createEnv) > 0 {
61+
args.Tags = strings.Split(createEnv, " ")
6262
}
63-
if len(runCreateVolume) > 0 {
64-
args.Volumes = strings.Split(runCreateVolume, " ")
63+
if len(createVolume) > 0 {
64+
args.Volumes = strings.Split(createVolume, " ")
6565
}
6666
ctx := cmd.GetContext(rawArgs)
6767
return commands.RunCreate(ctx, args)

0 commit comments

Comments
 (0)