Merge "Add "Version" column in the package-list output"

This commit is contained in:
Jenkins 2016-03-15 22:58:32 +00:00 committed by Gerrit Code Review
commit afd451ed5f
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class SimpleReadOnlyMuranoClientTest(utils.CLIUtilsTestBase):
def test_package_list(self):
packages = self.get_table_struct('package-list')
self.assertEqual(['ID', 'Name', 'FQN', 'Author', 'Active',
'Is Public', 'Type'], packages)
'Is Public', 'Type', 'Version'], packages)
class TableStructureMuranoClientTest(utils.CLIUtilsTestBase):

View File

@ -481,9 +481,9 @@ def do_package_list(mc, args=None):
def _print_package_list(packages):
field_labels = ["ID", "Name", "FQN", "Author", "Active",
"Is Public", "Type"]
"Is Public", "Type", "Version"]
fields = ["id", "name", "fully_qualified_name", "author",
"enabled", "is_public", "type"]
"enabled", "is_public", "type", "version"]
utils.print_list(packages, fields, field_labels, sortby=0)