Merge "Add "Version" column in the package-list output"
This commit is contained in:
commit
afd451ed5f
@ -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):
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user