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:
alex
2016-07-29 16:36:42 +08:00
parent 3722a2a9d5
commit a713a08276

View File

@@ -23,7 +23,7 @@ from cinderclient import base
class Service(base.Resource): class Service(base.Resource):
def __repr__(self): def __repr__(self):
return "<Service: %s>" % self.service return "<Service: binary=%s host=%s>" % (self.binary, self.host)
class ServiceManager(base.ManagerWithFind): class ServiceManager(base.ManagerWithFind):