components/python/cinderclient/patches/01-service.patch
changeset 6822 1b782154d546
equal deleted inserted replaced
6821:e3c34501ae8e 6822:1b782154d546
       
     1 The 'service' attribute doesn't exists, which can cause horizon to throw an AttributeError exception.
       
     2 Logged as upstream bug 1579982 https://bugs.launchpad.net/horizon/+bug/1579982 and this patch
       
     3 should be removed when the upstream bug is fixed and integrated in our version of python-cinderclient.
       
     4 
       
     5 --- python-cinderclient-1.6.0/cinderclient/v2/services.py.old	2016-09-01 11:21:55.402483826 -0700
       
     6 +++ python-cinderclient-1.6.0/cinderclient/v2/services.py	2016-09-01 11:21:42.665135394 -0700
       
     7 @@ -22,7 +22,7 @@
       
     8  class Service(base.Resource):
       
     9  
       
    10      def __repr__(self):
       
    11 -        return "<Service: %s>" % self.service
       
    12 +        return "<Service: %s>" % self._info
       
    13  
       
    14  
       
    15  class ServiceManager(base.ManagerWithFind):