Skip to content

Commit

Permalink
Merge pull request #3598 from dougm/kms-ls-default
Browse files Browse the repository at this point in the history
govc: display default provider in kms.ls output
  • Loading branch information
dougm authored Oct 21, 2024
2 parents 15e0e96 + aec1122 commit 7948ad8
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 7948ad8

Please sign in to comment.