[Admin-Util]: Fix tabulate results method

If multiple entries are passed to tabulate results method,
it errors out with TypeError since it is not able to format all
string arguments. This patch fixes this method.

Change-Id: Ibeb4e383690f812ccbf1225857d8da3068cfaeb5
Closes-Bug: #1567156
This commit is contained in:
Abhishek Raut 2016-04-05 23:15:16 -07:00
parent 2da49e896a
commit 8645839db2

View File

@ -67,5 +67,5 @@ def tabulate_results(data):
columns = data.pop(0) columns = data.pop(0)
table = prettytable.PrettyTable(["%s" % col for col in columns]) table = prettytable.PrettyTable(["%s" % col for col in columns])
for contents in data: for contents in data:
table.add_row(["%s" % contents]) table.add_row(["%s" % col for col in contents])
return table return table