components/python/novaclient/patches/01-novaclient-migration-list.patch
author Danek Duvall <danek.duvall@oracle.com>
Thu, 08 Sep 2016 17:47:13 -0700
changeset 6910 93182fb9923a
parent 5405 66fd59fecd68
permissions -rw-r--r--
24589822 deliver httplib2 for Python 3.x

# Patch to prevent nova migration-list from generating an error.
# This patch has not yet been submitted upstream. 

--- python-novaclient-2.23.0/novaclient/base.py.~1~	2015-05-08 13:53:27.607540246 -0600
+++ python-novaclient-2.23.0/novaclient/base.py	2015-05-08 13:53:50.138620241 -0600
@@ -73,7 +73,7 @@ class Manager(base.HookableMixin):
             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"):