From 97c6915160a2f186e0e29691cd8812494e726787 Mon Sep 17 00:00:00 2001 From: liusheng Date: Tue, 20 Jun 2017 10:53:58 +0800 Subject: [PATCH] Make the floating ip can be show in netinfo command Because a wrong field extraction, the floating ip cannot be correctly extracted from the api response, this change fix it. Change-Id: I62bd53f1e187d4217786071d114954a89a2beb76 Closes-Bug: #1698995 --- moganclient/osc/v1/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moganclient/osc/v1/server.py b/moganclient/osc/v1/server.py index ac83c64..f3f7bbb 100644 --- a/moganclient/osc/v1/server.py +++ b/moganclient/osc/v1/server.py @@ -532,7 +532,7 @@ class ShowServerNetworkInfo(command.Lister): ) data = bc_client.server.get_server_nics(server.uuid) columns = ('network_id', 'port_id', 'mac_address', 'fixed_ips', - 'floatingip', 'port_type') + 'floating_ip', 'port_type') formatters = {'fixed_ips': lambda s: json.dumps(s, indent=4)} return (columns, (utils.get_item_properties(