Skip to content

Go panic: invalid memory address when using "stackit server command create" command #1289

@LinusLutz

Description

@LinusLutz

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)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions