Skip to content

Commit

Permalink
feat: print out IPs after they were created
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Oct 26, 2023
1 parent 1c0e50a commit 3008e43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/cmd/floatingip/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ var CreateCmd = base.Cmd{
}

fmt.Printf("Floating IP %d created\n", result.FloatingIP.ID)
fmt.Printf("IP%s: %s\n", result.FloatingIP.Type[2:], result.FloatingIP.IP)

return changeProtection(ctx, client, waiter, result.FloatingIP, true, protectionOps)
},
Expand Down
1 change: 1 addition & 0 deletions internal/cmd/primaryip/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ var CreateCmd = base.Cmd{
}

fmt.Printf("Primary IP %d created\n", result.PrimaryIP.ID)
fmt.Printf("IP%s: %s\n", result.PrimaryIP.Type[2:], result.PrimaryIP.IP)

if len(protection) > 0 {
if err := changeProtection(ctx, client, waiter, result.PrimaryIP, true, protectionOpts); err != nil {
Expand Down

0 comments on commit 3008e43

Please sign in to comment.