Skip to content

Commit 1b33cbe

Browse files
committed
Merge pull request #322 from QuentinPerez/userdata
_userdata: multiple '='
2 parents eef4f01 + 14288f0 commit 1b33cbe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

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

11841184
### master (unreleased)
11851185

1186+
* `scw _userdata` fix bug when we have multiple '=' in the value ([#320](https://github.com/scaleway/scaleway-cli/issues/320))
11861187
* GetBootscriptID doesn't try to resolve when we pass an UUID
11871188
* Add location fields for VPS
11881189
* `scw ps` add commercial-type column

pkg/cli/x_userdata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func runUserdata(cmd *Command, args []string) error {
8585
}
8686
fmt.Fprintf(ctx.Stdout, "%s\n", res.String())
8787
default:
88-
value := parts[1]
88+
value := args[1][len(parts[0])+1:]
8989
if value != "" {
9090
var data []byte
9191
// Set userdata

0 commit comments

Comments
 (0)