octopus deployment-target view "aws ecs" -f basic -s default
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x18 pc=0x10341ee9c]
goroutine 1 [running]:
github.com/OctopusDeploy/cli/pkg/cmd/target/view.getDeploymentTargetAsBasic(0x1400018c8a0, 0x140002ea000)
/Users/benpearce/git/cli/pkg/cmd/target/view/view.go:219 +0x38c
github.com/OctopusDeploy/cli/pkg/cmd/target/view.ViewRun.func3(0x16cf53107?)
/Users/benpearce/git/cli/pkg/cmd/target/view/view.go:58 +0x28
github.com/OctopusDeploy/cli/pkg/output.PrintResource[...](0x140002ea000?, 0x140002f4008, {0x140001867c0, {{0x140002f65a0, 0x9, 0x9}, 0x140001867d0}, 0x140001867e0})
/Users/benpearce/git/cli/pkg/output/print_resource.go:40 +0xb0
github.com/OctopusDeploy/cli/pkg/cmd/target/view.ViewRun(0x1400018c8a0)
/Users/benpearce/git/cli/pkg/cmd/target/view/view.go:47 +0x1d4
github.com/OctopusDeploy/cli/pkg/cmd/target/view.NewCmdView.func1(0x140002f4008, {0x1400018ecd0, 0x1, 0x10348d82b?})
/Users/benpearce/git/cli/pkg/cmd/target/view/view.go:32 +0xc0
github.com/spf13/cobra.(*Command).execute(0x140002f4008, {0x1400018ec80, 0x5, 0x5})
/Users/benpearce/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:916 +0x5e0
github.com/spf13/cobra.(*Command).ExecuteC(0x1400029a008)
/Users/benpearce/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x2ec
github.com/spf13/cobra.(*Command).Execute(0x103775d30?)
/Users/benpearce/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968 +0x1c
main.main()
/Users/benpearce/git/cli/cmd/octopus/main.go:81 +0x628
The bug
Running
deployment-target viewordeployment-target listwhere the target is AWS ECS will cause the CLI to crashCommand to reproduce
Outcome
Versions
cli: all
Octopus Server: n/a
Links