diff --git a/internal/commands/catalog_instance.go b/internal/commands/catalog_instance.go index c2c810a..ad926bc 100644 --- a/internal/commands/catalog_instance.go +++ b/internal/commands/catalog_instance.go @@ -20,16 +20,14 @@ var catalogInstanceTableDef = &output.TableDef{ return []string{"", "", "", "", ""} } var catalogItemID string - var resourceID string if spec, ok := m["spec"].(map[string]any); ok { catalogItemID = stringifyValue(spec, "catalog_item_id") - resourceID = stringifyValue(spec, "resource_id") } return []string{ stringifyValue(m, "uid"), stringifyValue(m, "display_name"), catalogItemID, - resourceID, + stringifyValue(m, "resource_id"), stringifyValue(m, "create_time"), } }, diff --git a/internal/commands/catalog_instance_test.go b/internal/commands/catalog_instance_test.go index dbb62ed..188b1e3 100644 --- a/internal/commands/catalog_instance_test.go +++ b/internal/commands/catalog_instance_test.go @@ -20,9 +20,9 @@ func sampleInstanceResponse() map[string]any { "uid": "c3d4e5f6-a7b8-9012-cdef-123456789012", "display_name": "My App Instance", "create_time": "2026-03-09T10:00:00Z", + "resource_id": "res-abc123", "spec": map[string]any{ "catalog_item_id": "my-catalog-item", - "resource_id": "res-abc123", }, } }