Fix prefixes output for subnet pool list

Fixed "os subnet pool list" command to properly disply the
list of subnet pool prefixes in the "Prefixes" column. This
fix is consistent with the "os subnet pool create" and
"os subnet pool show" command output.

Change-Id: I431d85c3b7f5bf8a327500decf3a15063fc5b120
Closes-Bug: #1569480
This commit is contained in:
Richard Theis 2016-04-12 12:42:13 -05:00
parent 3be49a8abe
commit 3a4d53a93b
3 changed files with 10 additions and 3 deletions

View File

@ -184,7 +184,7 @@ class ListSubnetPool(command.Lister):
return (headers,
(utils.get_item_properties(
s, columns,
formatters={},
formatters=_formatters,
) for s in data))

View File

@ -246,7 +246,7 @@ class TestListSubnetPool(TestSubnetPool):
data.append((
pool.id,
pool.name,
pool.prefixes,
utils.format_list(pool.prefixes),
))
data_long = []
@ -254,7 +254,7 @@ class TestListSubnetPool(TestSubnetPool):
data_long.append((
pool.id,
pool.name,
pool.prefixes,
utils.format_list(pool.prefixes),
pool.default_prefixlen,
pool.address_scope_id,
))

View File

@ -0,0 +1,7 @@
---
fixes:
- Fixed ``subnet pool list`` command to properly disply the
list of subnet pool prefixes in the ``Prefixes`` column.
This fix is consistent with the ``subnet pool create`` and
``subnet pool show`` command output.
[Bug `1569480 <https://bugs.launchpad.net/bugs/1569480>`_]