From 8e2431457c137276285585c404856a7c3e04e2b9 Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Wed, 16 Apr 2014 13:42:51 +0300 Subject: [PATCH] Fix column index for sorting in rall verify list Table with verification results should be sorted by "created at" column. Closes-bug: #1308471 Change-Id: Icb5ee3f457523c0bd7e0c58a944c8bbc4726d11e --- rally/cmd/commands/verify.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rally/cmd/commands/verify.py b/rally/cmd/commands/verify.py index 5acb3aba0c..e048cdd0eb 100644 --- a/rally/cmd/commands/verify.py +++ b/rally/cmd/commands/verify.py @@ -76,7 +76,8 @@ class VerifyCommands(object): 'Created at', 'Status'] verifications = db.verification_list() if verifications: - common_cliutils.print_list(verifications, fields, sortby_index=6) + common_cliutils.print_list(verifications, fields, + sortby_index=fields.index('Created at')) else: print(_("There are no results from verifier. To run a verifier, " "use:\nrally verify start"))