Skip to content

Commit aec1122

Browse files
committed
govc: display default provider in kms.ls output
1 parent 15e0e96 commit aec1122

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

govc/kms/ls.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,11 @@ func (r *clusterResult) Write(w io.Writer) error {
189189
name := info.ClusterId.Id
190190
kind := kmsType(info.ManagementType)
191191
status := r.status(info.ClusterId)
192-
fmt.Fprintf(tw, "%s\t%s\t%s\n", name, kind, status)
192+
use := ""
193+
if info.UseAsDefault {
194+
use = "default"
195+
}
196+
fmt.Fprintf(tw, "%s\t%s\t%s\t%s\n", name, kind, status, use)
193197
}
194198

195199
return tw.Flush()

0 commit comments

Comments
 (0)