From 455f1f6073befa668080fe09b40b8f164e415812 Mon Sep 17 00:00:00 2001 From: Tom Proctor Date: Tue, 18 Oct 2022 14:46:11 +0100 Subject: [PATCH] CLI: Fix secrets list -detailed headings (#17577) --- changelog/17577.txt | 3 +++ command/secrets_list.go | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog/17577.txt diff --git a/changelog/17577.txt b/changelog/17577.txt new file mode 100644 index 000000000..2794e5f55 --- /dev/null +++ b/changelog/17577.txt @@ -0,0 +1,3 @@ +```release-note:bug +cli: Remove empty table heading for `vault secrets list -detailed` output. +``` \ No newline at end of file diff --git a/command/secrets_list.go b/command/secrets_list.go index 222534f43..998620f09 100644 --- a/command/secrets_list.go +++ b/command/secrets_list.go @@ -145,7 +145,7 @@ func (c *SecretsListCommand) detailedMounts(mounts map[string]*api.MountOutput) } } - out := []string{"Path | Plugin | Accessor | Default TTL | Max TTL | Force No Cache | Replication | Seal Wrap | External Entropy Access | Options | Description | UUID | Version | Running Version | Running SHA256 | | Deprecation Status"} + out := []string{"Path | Plugin | Accessor | Default TTL | Max TTL | Force No Cache | Replication | Seal Wrap | External Entropy Access | Options | Description | UUID | Version | Running Version | Running SHA256 | Deprecation Status"} for _, path := range paths { mount := mounts[path]