diff options
| author | Dean Troyer <dtroyer@gmail.com> | 2019-08-30 12:53:15 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2019-08-30 12:53:18 -0500 |
| commit | 6ee7b8d138e07bfc37c5cd887f7afa49cdabb02f (patch) | |
| tree | c8f5f45ff6bfc79242e6a92425a7c88583fcf2fc /openstackclient/network/v2/subnet_pool.py | |
| parent | eed615e7d0fb0935ddde0565bf93174549f2456a (diff) | |
| download | python-openstackclient-6ee7b8d138e07bfc37c5cd887f7afa49cdabb02f.tar.gz | |
Format location columns in network commands
These return a Munch from the SDK, which can be handled exactly
like a dict so do that.
Note that the location column has a nested project dict in the
return value, this is addressed separately in osc_lib.format_columns
in https://review.opendev.org/#/c/679474/.
Change-Id: I99a6d192749a4ac76777f72be8118261c0521cb0
Signed-off-by: Dean Troyer <dtroyer@gmail.com>
Diffstat (limited to 'openstackclient/network/v2/subnet_pool.py')
| -rw-r--r-- | openstackclient/network/v2/subnet_pool.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/network/v2/subnet_pool.py b/openstackclient/network/v2/subnet_pool.py index 7ece263a..d5a15475 100644 --- a/openstackclient/network/v2/subnet_pool.py +++ b/openstackclient/network/v2/subnet_pool.py @@ -42,6 +42,7 @@ def _get_columns(item): _formatters = { + 'location': format_columns.DictColumn, 'prefixes': format_columns.ListColumn, 'tags': format_columns.ListColumn, } |
