components/python/novaclient/patches/01-novaclient-migration-list.patch
branchs11u3-sru
changeset 6035 c9748fcc32de
parent 4072 db0cec748ec0
equal deleted inserted replaced
6016:a477397bba8b 6035:c9748fcc32de
     1 # Patch to prevent nova migration-list from generating an error.
     1 # Patch to prevent nova migration-list from generating an error.
     2 # This patch has not yet been submitted upstream. 
     2 # This patch has not yet been submitted upstream. 
     3 
     3 
     4 --- python-novaclient-2.20.0/novaclient/base.py.~1~	2014-09-20 15:12:42.000000000 -0700
     4 --- python-novaclient-2.23.0/novaclient/base.py.~1~	2015-05-08 13:53:27.607540246 -0600
     5 +++ python-novaclient-2.20.0/novaclient/base.py	2014-12-13 14:26:17.459463436 -0800
     5 +++ python-novaclient-2.23.0/novaclient/base.py	2015-05-08 13:53:50.138620241 -0600
     6 @@ -76,7 +76,7 @@ class Manager(utils.HookableMixin):
     6 @@ -73,7 +73,7 @@ class Manager(base.HookableMixin):
     7              try:
     7              try:
     8                  data = data['values']
     8                  data = data['values']
     9              except KeyError:
     9              except KeyError:
    10 -                pass
    10 -                pass
    11 +                data = []
    11 +                data = []
    12  
    12  
    13          self._clear_completion_cache_for_class(obj_class)
    13          with self.completion_cache('human_id', obj_class, mode="w"):
    14  
    14              with self.completion_cache('uuid', obj_class, mode="w"):
       
    15