components/python/novaclient/patches/01-novaclient-migration-list.patch
author Padma Dakoju<padma.dakoju@oracle.com>
Tue, 26 Aug 2014 11:05:41 -0600
changeset 2058 f97e212983b2
child 3998 5bd484384122
permissions -rw-r--r--
19439030 'nova migration-list' returns python error
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2058
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
     1
# Patch to prevent nova migration-list from generating an error.
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
     2
# This patch has not yet been submitted upstream. 
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
     3
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
     4
--- python-novaclient-2.17.0/novaclient/base.py.orig        2014-08-22 16:12:58.186693128 -0600
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
     5
+++ python-novaclient-2.17.0/novaclient/base.py     2014-08-22 16:16:19.119321660 -0600
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
     6
@@ -73,7 +73,7 @@
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
     7
             try:
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
     8
                 data = data['values']
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
     9
             except KeyError:
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
    10
-                pass
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
    11
+                data = []
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
    12
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
    13
         with self.completion_cache('human_id', obj_class, mode="w"):
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
    14
             with self.completion_cache('uuid', obj_class, mode="w"):
f97e212983b2 19439030 'nova migration-list' returns python error
Padma Dakoju<padma.dakoju@oracle.com>
parents:
diff changeset
    15