From 172744b04d03f14f12359d6773c3a153250c8a37 Mon Sep 17 00:00:00 2001 From: "Alexandros, Sapranidis" Date: Mon, 4 Mar 2019 14:11:02 +0200 Subject: [PATCH] Sort track params and user tags when listing races 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. --- esrally/metrics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esrally/metrics.py b/esrally/metrics.py index ab91a7886..4069df1f5 100644 --- a/esrally/metrics.py +++ b/esrally/metrics.py @@ -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