Skip to content

Commit

Permalink
govc: display default provider in kms.ls output
Browse files Browse the repository at this point in the history
  • Loading branch information
dougm committed Oct 21, 2024
1 parent 15e0e96 commit aec1122
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion govc/kms/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ func (r *clusterResult) Write(w io.Writer) error {
name := info.ClusterId.Id
kind := kmsType(info.ManagementType)
status := r.status(info.ClusterId)
fmt.Fprintf(tw, "%s\t%s\t%s\n", name, kind, status)
use := ""
if info.UseAsDefault {
use = "default"
}
fmt.Fprintf(tw, "%s\t%s\t%s\t%s\n", name, kind, status, use)
}

return tw.Flush()
Expand Down

0 comments on commit aec1122

Please sign in to comment.