Skip to content

Commit

Permalink
Fix instance/ipool key naming in json output (#612)
Browse files Browse the repository at this point in the history
Renames keys that did not match actual data:
- `template_id` -> `template`;
- `zoneid` -> `zone`.

These were present in both `c instance show` and `c instance-pool show`
commands.
  • Loading branch information
kobajagi authored Jun 19, 2024
1 parent 74f338d commit 2e48066
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
### Bug Fixes

- dbaas opensearch: remove top-level max-index-count flag #611
- Fix instance/ipool key naming in json output #612

## 1.78.2

Expand Down
4 changes: 2 additions & 2 deletions cmd/instance_pool_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ type instancePoolShowOutput struct {
Name string `json:"name"`
Description string `json:"description"`
InstanceType string `json:"instance_type"`
Template string `json:"template_id"`
Zone string `json:"zoneid"`
Template string `json:"template"`
Zone string `json:"zone"`
AntiAffinityGroups []string `json:"anti_affinity_groups" outputLabel:"Anti-Affinity Groups"`
SecurityGroups []string `json:"security_groups"`
PrivateNetworks []string `json:"private_networks"`
Expand Down
4 changes: 2 additions & 2 deletions cmd/instance_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ type instanceShowOutput struct {
Name string `json:"name"`
CreationDate string `json:"creation_date"`
InstanceType string `json:"instance_type"`
Template string `json:"template_id"`
Zone string `json:"zoneid"`
Template string `json:"template"`
Zone string `json:"zone"`
AntiAffinityGroups []string `json:"anti_affinity_groups" outputLabel:"Anti-Affinity Groups"`
DeployTarget string `json:"deploy_target"`
SecurityGroups []string `json:"security_groups"`
Expand Down

0 comments on commit 2e48066

Please sign in to comment.