Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Don't allow listing upgrades without providing cluster UUID #497

Open
optik-aper opened this issue Dec 2, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@optik-aper
Copy link
Member

Describe the bug
When running kubernetes upgrade list and not including a UUID

panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/vultr/vultr-cli/v3/cmd/kubernetes.(*options).upgrades(0x0?)
        /home/michael/repos/vultr-cli/cmd/kubernetes/kubernetes.go:1215 +0x59
github.com/vultr/vultr-cli/v3/cmd/kubernetes.NewCmdKubernetes.func14(0xc000235700?, {0xe4fa80?, 0x4?, 0x9e51f1?})
        /home/michael/repos/vultr-cli/cmd/kubernetes/kubernetes.go:605 +0x25
github.com/spf13/cobra.(*Command).execute(0xc0001e9508, {0xe4fa80, 0x0, 0x0})
        /home/michael/repos/vultr-cli/vendor/github.com/spf13/cobra/command.go:985 +0xaaa
github.com/spf13/cobra.(*Command).ExecuteC(0xe287a0)
        /home/michael/repos/vultr-cli/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
        /home/michael/repos/vultr-cli/vendor/github.com/spf13/cobra/command.go:1041
github.com/vultr/vultr-cli/v3/cmd.Execute()
        /home/michael/repos/vultr-cli/cmd/root.go:64 +0x1a
main.main()
        /home/michael/repos/vultr-cli/main.go:7 +0xf
exit status 2

Expected behavior
Make the UUID required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant