Skip to content

Commit f3e009a

Browse files
Also show race id when listing races (elastic#182)
With this commit we add the race id to the output of the list races command in the night-rally-admin tool. As we use the race id as the unique identifier for a Rally invocation, we should also be able to see it in diagnostic output.
1 parent 8f4f1b4 commit f3e009a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

night_rally/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ def format_dict(d):
8787
else:
8888
user_tags = ""
8989

90-
races.append([src["race-timestamp"], src["track"], src["challenge"], src["car"],
90+
races.append([src["race-timestamp"], src["race-id"], src["track"], src["challenge"], src["car"],
9191
src["cluster"]["distribution-version"], src["cluster"]["revision"], src["track-revision"], src["cluster"]["team-revision"], user_tags])
9292
if races:
93-
print(tabulate.tabulate(races, headers=["Race Timestamp", "Track", "Challenge", "Car", "Version", "Revision", "Track Revision", "Team Revision", "User Tags"]))
93+
print(tabulate.tabulate(races, headers=["Race Timestamp", "Race Id", "Track", "Challenge", "Car", "Version", "Revision", "Track Revision", "Team Revision", "User Tags"]))
9494
else:
9595
print("No results")
9696

0 commit comments

Comments
 (0)