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/port.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/port.py')
| -rw-r--r-- | openstackclient/network/v2/port.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openstackclient/network/v2/port.py b/openstackclient/network/v2/port.py index e6bfe853..4d7e5189 100644 --- a/openstackclient/network/v2/port.py +++ b/openstackclient/network/v2/port.py @@ -51,6 +51,7 @@ _formatters = { 'dns_assignment': format_columns.ListDictColumn, 'extra_dhcp_opts': format_columns.ListDictColumn, 'fixed_ips': format_columns.ListDictColumn, + 'location': format_columns.DictColumn, 'security_group_ids': format_columns.ListColumn, 'tags': format_columns.ListColumn, } |
