Skip to content

Commit 162c985

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Fix prefixes output for subnet pool list"
2 parents 9f75e7a + 3a4d53a commit 162c985

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

openstackclient/network/v2/subnet_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def take_action(self, parsed_args):
184184
return (headers,
185185
(utils.get_item_properties(
186186
s, columns,
187-
formatters={},
187+
formatters=_formatters,
188188
) for s in data))
189189

190190

openstackclient/tests/network/v2/test_subnet_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,15 @@ class TestListSubnetPool(TestSubnetPool):
246246
data.append((
247247
pool.id,
248248
pool.name,
249-
pool.prefixes,
249+
utils.format_list(pool.prefixes),
250250
))
251251

252252
data_long = []
253253
for pool in _subnet_pools:
254254
data_long.append((
255255
pool.id,
256256
pool.name,
257-
pool.prefixes,
257+
utils.format_list(pool.prefixes),
258258
pool.default_prefixlen,
259259
pool.address_scope_id,
260260
))
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
fixes:
3+
- Fixed ``subnet pool list`` command to properly disply the
4+
list of subnet pool prefixes in the ``Prefixes`` column.
5+
This fix is consistent with the ``subnet pool create`` and
6+
``subnet pool show`` command output.
7+
[Bug `1569480 <https://bugs.launchpad.net/bugs/1569480>`_]

0 commit comments

Comments
 (0)