From 70e6cd97906fde9a888bae6eadc435560b64ec09 Mon Sep 17 00:00:00 2001 From: gtt116 Date: Wed, 10 Jul 2013 17:45:22 +0800 Subject: [PATCH] Fix interface-list got none mac address. novaclient expect the response json body has a column 'mac_address', but actually is 'mac_addr'. This patch is a quick fix. Just print out "mac_addr" is readable enough. Fix bug: #1199706 Change-Id: I68823a3d719ee2f5d9d8b6227ca8eb858fc270c3 --- novaclient/v1_1/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/novaclient/v1_1/shell.py b/novaclient/v1_1/shell.py index 5d882a646..e4375ac06 100644 --- a/novaclient/v1_1/shell.py +++ b/novaclient/v1_1/shell.py @@ -3110,7 +3110,7 @@ def do_evacuate(cs, args): def _print_interfaces(interfaces): columns = ['Port State', 'Port ID', 'Net ID', 'IP addresses', - 'MAC Address'] + 'MAC Addr'] class FormattedInterface(object): def __init__(self, interface):