diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f58ad254..4991326f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `database session cancel` for cancelling an active database session ### Changed +- **Breaking**: In JSON and YAML output of `loadbalancer list`: display full API response. This changes `state` field to `operational_state`. - In human readable output of `kubernetes show` command, show node-groups as table. Node-group datails are available with `kubernetes nodegroup show` command. ## Removed diff --git a/internal/commands/loadbalancer/list.go b/internal/commands/loadbalancer/list.go index db47a6034..a482980a7 100644 --- a/internal/commands/loadbalancer/list.go +++ b/internal/commands/loadbalancer/list.go @@ -38,14 +38,17 @@ func (s *listCommand) ExecuteWithoutArguments(exec commands.Executor) (output.Ou }) } - return output.Table{ - Columns: []output.TableColumn{ - {Key: "uuid", Header: "UUID", Colour: ui.DefaultUUUIDColours}, - {Key: "name", Header: "Name"}, - {Key: "plan", Header: "Plan"}, - {Key: "zone", Header: "Zone"}, - {Key: "state", Header: "State", Format: format.LoadBalancerState}, + return output.MarshaledWithHumanOutput{ + Value: loadbalancers, + Output: output.Table{ + Columns: []output.TableColumn{ + {Key: "uuid", Header: "UUID", Colour: ui.DefaultUUUIDColours}, + {Key: "name", Header: "Name"}, + {Key: "plan", Header: "Plan"}, + {Key: "zone", Header: "Zone"}, + {Key: "operational_state", Header: "State", Format: format.LoadBalancerState}, + }, + Rows: rows, }, - Rows: rows, }, nil }