From fa04a1977b5b612f9d4881aefacda99564a9b737 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Sat, 23 Dec 2023 17:08:17 +0900 Subject: [PATCH] refactor: change sort option --- src/spacectl/command/execute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spacectl/command/execute.py b/src/spacectl/command/execute.py index c2ead29..c48f3ca 100644 --- a/src/spacectl/command/execute.py +++ b/src/spacectl/command/execute.py @@ -86,10 +86,10 @@ def list(resource, parameter, json_parameter, file_path, minimal_columns, all_co if parser: sort_key = parser.get_sort_key(sort_key) or sort_key - params['query']['sort'] = { + params['query']['sort'] = [{ 'key': sort_key, 'desc': desc - } + }] _execute_api(service, resource, 'list', params=params, api_version=api_version, output=output, parser=parser)