Description
When I run stackit
server command create --server-id ... --template-name=RunShellScript
without the --params script=... I get a Go panic
Steps to reproduce
Run stackit server command create --server-id ...--template-name=RunShellScript
Actual behavior
panic: runtime error: invalid memory address or nil pointer dereference
because of the dereferencing in
|
parsedParams, err := runcommandUtils.ParseScriptParams(*model.Params) |
Expected behavior
I would expect the cli to respond with an error about the missing param script field
Environment
- OS: Linux Code-Server VM
- Version of STACKIT CLI:
v0.53.1(installed through nixpkgs)
Description
When I run stackit
server command create --server-id ... --template-name=RunShellScriptwithout the
--params script=...I get a Go panicSteps to reproduce
Run stackit server command create --server-id ...--template-name=RunShellScript
Actual behavior
panic: runtime error: invalid memory address or nil pointer dereference
because of the dereferencing in
stackit-cli/internal/cmd/server/command/create/create.go
Line 122 in 19b9b6d
Expected behavior
I would expect the cli to respond with an error about the missing param script field
Environment
v0.53.1(installed through nixpkgs)