You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(iaas): print valid JSON/YAML output for list cmds (#1365)
* fix returning empty server array in case the response does not return any items via outputResult function instead of returning nil bluntly. adapted tests therefore.
* adapted outputResult signature to comply to linter
* switched to getter for retrieving the items
* adapted printing behavior to align with expected behavior
* change printing to defined output instead of stderr
* adapted network list command to align to expectations
* remove unnecessary normalization of nil value in response items after feedback
* adapted network-area list command to align to expectations
* removed redundant check
* adapted affinity list command to align to expectations
* adapted image list command to align to expectations
* adapted key pair list command to align to expectations
* fixed debug print in key pair list command
* move project label retrieval
* adapted public ip list command to align to expectations
* adapted security group list command to align to expectations
* added missing --limit flag for list security groups command
* adapted volumes list command to align to expectations
* adapted volume snapshots list command to align to expectations
* adapted volume performance class list command to align to expectations
* adapted volume backups list command to align to expectations
* fixed order of params
* adapted network area network ranges list command to align to expectations
* adapted network area routes list command to align to expectations
* adapted security group rules list command to align to expectations
* adapted server machine-types list command to align to expectations
* adapted server network-interfaces list command to align to expectations
* adapted server service accounts list command to align to expectations
* adapted server volumes list command to align to expectations
* removed unnecessary check in public ip
* regenerate docs
* fixed linter issue
* Update internal/cmd/key-pair/list/list.go
Co-authored-by: Ruben Hönle <git@hoenle.xyz>
* (fix): remove mistakenly added project label from key pairs list command
* (fix): made orgLabel in model from pointer to string for not having to deal with nil values since it is required anyways
* (fix): remove unnecessarily declaring variable with explicit statement
* (fix): made OrganizationId and NetworkAreaId in model from pointer to string for not having to deal with nil values since it is required anyways
* (fix): changed print statement to not contain abbreviation
* (fix): added test suggestion
* adapted server quotas list command to return valid json/yaml when quotas is empty
* fix(iaas): readded lost elif block
---------
Co-authored-by: Ruben Hönle <git@hoenle.xyz>
0 commit comments