Skip to content

Commit

Permalink
cli: fix json output for namespace list command (#7705)
Browse files Browse the repository at this point in the history
(cherry picked from commit da984b2)
  • Loading branch information
calvn committed Oct 21, 2019
1 parent f032fb2 commit 6318ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/namespace_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6318ec7

Please sign in to comment.