File 0001-Fix-listing-of-Server-in-floating-ip-list.patch of Package python-novaclient

From 762798a9c45984940039661195b506bd648e7c71 Mon Sep 17 00:00:00 2001
From: Dirk Mueller <dirk@dmllr.de>
Date: Fri, 30 May 2014 12:29:09 +0200
Subject: [PATCH] Fix listing of Server in floating-ip-list

Add a translation from instance_id to server_id to accommodate
for the adjusted user output.

Closes-Bug: #1324857

Change-Id: Ifaa15f6907b5efae7431eb1741b7fae4b3540a8c
---
 novaclient/v1_1/shell.py | 3 +++
 novaclient/v3/shell.py   | 3 +++
 2 files changed, 6 insertions(+)

Index: python-novaclient-2.17.0/novaclient/v1_1/shell.py
===================================================================
--- python-novaclient-2.17.0.orig/novaclient/v1_1/shell.py
+++ python-novaclient-2.17.0/novaclient/v1_1/shell.py
@@ -1935,6 +1935,9 @@ def do_clear_password(cs, args):
 
 
 def _print_floating_ip_list(floating_ips):
+    convert = [('instance_id', 'server_id')]
+    _translate_keys(floating_ips, convert)
+
     utils.print_list(floating_ips, ['Ip', 'Server Id', 'Fixed Ip', 'Pool'])
 
 
Index: python-novaclient-2.17.0/novaclient/v3/shell.py
===================================================================
--- python-novaclient-2.17.0.orig/novaclient/v3/shell.py
+++ python-novaclient-2.17.0/novaclient/v3/shell.py
@@ -1519,6 +1519,9 @@ def do_clear_password(cs, args):
 
 
 def _print_floating_ip_list(floating_ips):
+    convert = [('instance_id', 'server_id')]
+    _translate_keys(floating_ips, convert)
+
     utils.print_list(floating_ips, ['Ip', 'Server Id', 'Fixed Ip', 'Pool'])
 
 
openSUSE Build Service is sponsored by