AttributeError when print service object
There is no attribute of 'service' in class Service. We should replace it with 'binary'. Change-Id: Ic84706ff64e0270dcbf65adb473d366618822017 Closes-Bug: #1594308
This commit is contained in:
@@ -23,7 +23,7 @@ from cinderclient import base
|
||||
class Service(base.Resource):
|
||||
|
||||
def __repr__(self):
|
||||
return "<Service: %s>" % self.service
|
||||
return "<Service: binary=%s host=%s>" % (self.binary, self.host)
|
||||
|
||||
|
||||
class ServiceManager(base.ManagerWithFind):
|
||||
|
Reference in New Issue
Block a user