table: truncate description in dcos package list (#927)

This commit is contained in:
Marc Abramowitz
2017-03-13 22:21:44 -07:00
committed by tamarrow
parent c30fc1f6ad
commit 7f600c59ca

View File

@@ -768,7 +768,11 @@ def package_table(packages):
('DESCRIPTION', lambda p: p['description'])
])
tb = table(fields, packages, sortby="NAME")
limits = {
"DESCRIPTION": 65
}
tb = truncate_table(fields, packages, limits, sortby="NAME")
tb.align['NAME'] = 'l'
tb.align['VERSION'] = 'l'
tb.align['APP'] = 'l'