You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE REQUEST] Secret Store list command to produce empty array instead of null for json output #1389
When requesting to list edge resources in json, the secret store produces a null output when empty.
vcarvajal@vcarvajal-fastly:$ fastly secret-store list --quiet --json
null
I'm using the following version:
vcarvajal@vcarvajal-fastly:$ fastly version
Fastly CLI version v10.18.0 (9679de4f)
Built with go version go1.22.11 linux/amd64 (2025-02-07)
Viceroy version: viceroy 0.12.2
Additionally, the output from various other edge resources types will produce an empty array.
Agreed, the lack of consistency here is harmful. In fact the 'kv-store list' command is literally just emitting the raw JSON response from the API endpoint...
Activity
kpfleming commentedon Feb 10, 2025
Agreed, the lack of consistency here is harmful. In fact the 'kv-store list' command is literally just emitting the raw JSON response from the API endpoint...
fix(json): initialise the secret-store list accumulator
fix(json): emit an empty list rather than null when there is nothing …