Minor fixes to the formatter and task_names parameter getter

Change-Id: I6e10180bdc2c427a7d1aaa04bdf444dbaf4404a0
Related-Bug: #1563317
This commit is contained in:
Ilya Kutukov
2016-05-31 16:35:13 +03:00
parent a883033b5d
commit 40f7a87eca
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ class DeploymentTasksAction(Action):
"""
client = DeploymentHistoryClient()
tasks_names = getattr(params, 'task-name')
tasks_names = getattr(params, 'task-name', None)
group_by_tasks = bool(tasks_names)
statuses = params.status.split(',') if params.status else []
nodes = params.node.split(',') if params.node else []

View File

@@ -98,7 +98,7 @@ def format_table(data, acceptable_keys=None, column_to_join=None):
for cell_line_no in range(max_cell_lines):
output_lines.append(
row_template.format(
*list(
*(
cell[cell_line_no] if len(cell) > cell_line_no else u""
for cell in row
)