Skip to content

Commit

Permalink
refactor: change sort option
Browse files Browse the repository at this point in the history
  • Loading branch information
whdalsrnt committed Dec 23, 2023
1 parent 7fb9e60 commit fa04a19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spacectl/command/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit fa04a19

Please sign in to comment.