From aec11224a9b43f97c62ebc04d6d4249ddb5de668 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 21 Oct 2024 11:41:11 -0700 Subject: [PATCH] govc: display default provider in kms.ls output --- govc/kms/ls.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/govc/kms/ls.go b/govc/kms/ls.go index 466316f47..8d77588b5 100644 --- a/govc/kms/ls.go +++ b/govc/kms/ls.go @@ -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()