[UX] Align to left the table for the validations run results

All the PrettyTables are aligned to left and this patch standardizes all
the tables.

Change-Id: Ide062e65b0a76078b5d3ce55a60df3cb5be34a0e
Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
This commit is contained in:
Gael Chamoulaud (Strider) 2020-11-30 12:40:09 +01:00 committed by Alex Schultz
parent 44b94ee9bf
commit c6f22c1f3c
1 changed files with 1 additions and 0 deletions

View File

@ -402,6 +402,7 @@ class TripleOValidatorRun(command.Command):
t = PrettyTable(border=True, header=True, padding_width=1)
# Set Field name by getting the result dict keys
t.field_names = results[0].keys()
t.align = 'l'
for r in results:
if r.get('Status_by_Host'):
h = []