Skip to content

Commit

Permalink
Merge pull request #45 from whdalsrnt/master
Browse files Browse the repository at this point in the history
refactor: change sort option
  • Loading branch information
whdalsrnt authored Dec 23, 2023
2 parents 7fb9e60 + fa04a19 commit e4567a4
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 e4567a4

Please sign in to comment.