Skip to content

Commit

Permalink
fix: Display empty lists when using --json (#526)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai authored Oct 4, 2023
1 parent 01a154c commit 8619b72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions linodecli/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,7 @@ def _select_json_elements(keys, json_res):

results.append(selected)

if len(results) > 0:
ret[k] = results
ret[k] = results

return ret

Expand Down

0 comments on commit 8619b72

Please sign in to comment.