diff options
author | Hongbin Lu <hongbin.lu@huawei.com> | 2018-01-15 22:21:19 +0000 |
---|---|---|
committer | Hongbin Lu <hongbin.lu@huawei.com> | 2018-04-27 20:29:35 +0000 |
commit | 46f8614da836538f7b0a3d250e13bea05288932f (patch) | |
tree | 114392ae272ed37df0db5fb6b853a1439132e115 /openstackclient/network/v2/floating_ip.py | |
parent | 06263bd5852aad9cd03a76f50140fbbb2d0751ba (diff) | |
download | python-openstackclient-46f8614da836538f7b0a3d250e13bea05288932f.tar.gz |
Format port_details field of Floating IP
Depends-On: I31e940d2986278d2fbee6fdfea4ff15f7c07ebaa
Change-Id: I115739ea253ce26e075cd3f10e719b13f18afa5b
Partial-Bug: #1723026
Diffstat (limited to 'openstackclient/network/v2/floating_ip.py')
-rw-r--r-- | openstackclient/network/v2/floating_ip.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openstackclient/network/v2/floating_ip.py b/openstackclient/network/v2/floating_ip.py index f51baed5..572cbef6 100644 --- a/openstackclient/network/v2/floating_ip.py +++ b/openstackclient/network/v2/floating_ip.py @@ -25,6 +25,11 @@ from openstackclient.network import sdk_utils from openstackclient.network.v2 import _tag +_formatters = { + 'port_details': utils.format_dict, +} + + def _get_network_columns(item): column_map = { 'tenant_id': 'project_id', @@ -489,7 +494,7 @@ class ShowFloatingIP(common.NetworkAndComputeShowOne): ignore_missing=False, ) display_columns, columns = _get_network_columns(obj) - data = utils.get_item_properties(obj, columns) + data = utils.get_item_properties(obj, columns, formatters=_formatters) return (display_columns, data) def take_action_compute(self, client, parsed_args): |