From a713a082761a30348155ab05a3db6580d12da3a3 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 29 Jul 2016 16:36:42 +0800 Subject: [PATCH] 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 --- cinderclient/v3/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinderclient/v3/services.py b/cinderclient/v3/services.py index beaee44ab..e3d274bea 100644 --- a/cinderclient/v3/services.py +++ b/cinderclient/v3/services.py @@ -23,7 +23,7 @@ from cinderclient import base class Service(base.Resource): def __repr__(self): - return "" % self.service + return "" % (self.binary, self.host) class ServiceManager(base.ManagerWithFind):