Skip to content

Commit

Permalink
Merge pull request #53 from caliban0/ipOutputFix
Browse files Browse the repository at this point in the history
Fix IP table output.
  • Loading branch information
zalmarge authored Oct 25, 2024
2 parents 1ed5986 + 650c16a commit 95d1fa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/ips/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (c *Client) Create() *cobra.Command {

header := []string{"ID", "Address", "Cidr", "Type", "Region", "PTR record", "A record", "Tags"}
data := make([][]string, 1)
data[0] = []string{i.ID, i.Address, i.Cidr, i.Type, i.Region.Name, i.Region.Name, i.PtrRecord, utils.FormatStringTags(i.Tags)}
data[0] = []string{i.ID, i.Address, i.Cidr, i.Type, i.Region.Name, i.PtrRecord, i.ARecord, utils.FormatStringTags(i.Tags)}

return c.Out.Output(i, header, &data)
},
Expand Down
2 changes: 1 addition & 1 deletion internal/ips/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (c *Client) List() *cobra.Command {
data := make([][]string, len(ips))

for i, ip := range ips {
data[i] = []string{ip.ID, ip.Address, ip.Cidr, ip.Type, ip.TargetedTo.Hostname, ip.Region.Name, ip.Region.Name, ip.PtrRecord, utils.FormatStringTags(ip.Tags)}
data[i] = []string{ip.ID, ip.Address, ip.Cidr, ip.Type, ip.TargetedTo.Hostname, ip.Region.Name, ip.PtrRecord, ip.ARecord, utils.FormatStringTags(ip.Tags)}
}
header := []string{"ID", "Address", "Cidr", "Type", "Target", "Region", "PTR record", "A record", "Tags"}

Expand Down

0 comments on commit 95d1fa2

Please sign in to comment.