mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
cli: fix json output for namespace list command (#7705)
This commit is contained in:
parent
39247a5a21
commit
da984b2d48
@ -74,7 +74,7 @@ func (c *NamespaceListCommand) Run(args []string) int {
|
||||
|
||||
_, ok := extractListData(secret)
|
||||
if Format(c.UI) != "table" {
|
||||
if secret == nil || secret.Data != nil || !ok {
|
||||
if secret == nil || secret.Data == nil || !ok {
|
||||
OutputData(c.UI, map[string]interface{}{})
|
||||
return 2
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user