Skip to content

Commit

Permalink
Sort track params and user tags when listing races (#659)
Browse files Browse the repository at this point in the history
This change is affecting the list races subcommand.
It sorts the track parameters in alphabetical order in order to make the output
consistent and also sort the user tags with the same order.
  • Loading branch information
alexsapran authored Mar 4, 2019
1 parent 3448807 commit f7ae44e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion esrally/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,8 @@ def race_store(cfg):
def list_races(cfg):
def format_dict(d):
if d:
return ", ".join(["%s=%s" % (k, v) for k, v in d.items()])
items=sorted(d.items())
return ", ".join(["%s=%s" % (k, v) for k, v in items])
else:
return None

Expand Down

0 comments on commit f7ae44e

Please sign in to comment.