mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Fix KV list command with whitespaces (#8017)
* Fix KV list command with whitespaces * Fix kv list whitespace * Fix list whitespace * Fix failing test Co-authored-by: swayne275 <swayne@hashicorp.com>
This commit is contained in:
@@ -36,7 +36,7 @@ func extractListData(secret *api.Secret) ([]interface{}, bool) {
|
||||
|
||||
// sanitizePath removes any leading or trailing things from a "path".
|
||||
func sanitizePath(s string) string {
|
||||
return ensureNoTrailingSlash(ensureNoLeadingSlash(strings.TrimSpace(s)))
|
||||
return ensureNoTrailingSlash(ensureNoLeadingSlash(s))
|
||||
}
|
||||
|
||||
// ensureTrailingSlash ensures the given string has a trailing slash.
|
||||
|
||||
Reference in New Issue
Block a user