From 8619b7259b19381aee22d5105752fb83b42bfc44 Mon Sep 17 00:00:00 2001 From: Lena Garber <114949949+lgarber-akamai@users.noreply.github.com> Date: Wed, 4 Oct 2023 16:15:37 -0400 Subject: [PATCH] fix: Display empty lists when using `--json` (#526) --- linodecli/output.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linodecli/output.py b/linodecli/output.py index 379abf799..86c5d9461 100644 --- a/linodecli/output.py +++ b/linodecli/output.py @@ -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