19439030 'nova migration-list' returns python error
authorPadma Dakoju<padma.dakoju@oracle.com>
Tue, 26 Aug 2014 11:05:41 -0600
changeset 2058 f97e212983b2
parent 2057 e712a3010964
child 2059 da41cc055371
19439030 'nova migration-list' returns python error
components/python/novaclient/patches/01-novaclient-migration-list.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/novaclient/patches/01-novaclient-migration-list.patch	Tue Aug 26 11:05:41 2014 -0600
@@ -0,0 +1,15 @@
+# Patch to prevent nova migration-list from generating an error.
+# This patch has not yet been submitted upstream. 
+
+--- python-novaclient-2.17.0/novaclient/base.py.orig        2014-08-22 16:12:58.186693128 -0600
++++ python-novaclient-2.17.0/novaclient/base.py     2014-08-22 16:16:19.119321660 -0600
[email protected]@ -73,7 +73,7 @@
+             try:
+                 data = data['values']
+             except KeyError:
+-                pass
++                data = []
+
+         with self.completion_cache('human_id', obj_class, mode="w"):
+             with self.completion_cache('uuid', obj_class, mode="w"):
+