Describe the issue
Auto-generated CLI commands panic when selecting arguments interactively for databricks warehouses update-default-warehouse-override.
databricks warehouses update-default-warehouse-override
The Databricks CLI unexpectedly had a fatal error.
Please report this issue to Databricks in the form of a GitHub issue at:
https://github.com/databricks/cli
CLI Version: 0.298.0
Panic Payload: runtime error: index out of range [1] with length 1
Stack Trace:
goroutine 1 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:26 +0x64
github.com/databricks/cli/cmd/root.Execute.func1()
github.com/databricks/cli/cmd/root/root.go:117 +0x9c
panic({0x1019777e0?, 0x140003de018?})
runtime/panic.go:783 +0x120
github.com/databricks/cli/cmd/workspace/warehouses.newUpdateDefaultWarehouseOverride.func2(0x1400002fb08, {0x1028e1c20, 0x0, 0x0})
github.com/databricks/cli/cmd/workspace/warehouses/warehouses.go:1429 +0x298
github.com/spf13/cobra.(*Command).execute(0x1400002fb08, {0x1028e1c20, 0x0, 0x0})
github.com/spf13/cobra@v1.10.2/command.go:1015 +0x7d4
github.com/spf13/cobra.(*Command).ExecuteC(0x1400019af08)
github.com/spf13/cobra@v1.10.2/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).ExecuteContextC(...)
github.com/spf13/cobra@v1.10.2/command.go:1080
github.com/databricks/cli/cmd/root.Execute({0x101ac6e40, 0x1028e1c20}, 0x1400019af08)
github.com/databricks/cli/cmd/root/root.go:146 +0x108
main.main()
github.com/databricks/cli/main.go:17 +0x44
Steps to reproduce the behavior
- Databricks CLI version 0.298.0 installed (have not tested with other versions)
- Run databricks warehouses update-default-warehouse-override
- Select any warehouse from the list. In my case, it was Serverless Starter Warehouse (386f665b323200a8)
- Immediately receive error
Expected Behavior
Graceful failure, or a way to enter additional arguments
Actual Behavior
Command picks the name of the resource selected from the dropdown and panics for missing positional arguments.
OS and CLI version
% databricks --version
Databricks CLI v0.298.0
Is this a regression?
No
Debug Logs
Describe the issue
Auto-generated CLI commands panic when selecting arguments interactively for
databricks warehouses update-default-warehouse-override.Steps to reproduce the behavior
Expected Behavior
Graceful failure, or a way to enter additional arguments
Actual Behavior
Command picks the name of the resource selected from the dropdown and panics for missing positional arguments.
OS and CLI version
Is this a regression?
No
Debug Logs