summaryrefslogtreecommitdiff
path: root/nova/service.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/service.py')
-rw-r--r--nova/service.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/nova/service.py b/nova/service.py
index dc40de4a0c..9810ce275d 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -110,6 +110,15 @@ class Service(service.Service):
self.conductor_api = conductor.API(use_local=db_allowed)
self.conductor_api.wait_until_ready(context.get_admin_context())
+ def __repr__(self):
+ return "<%(cls_name)s: host=%(host)s, binary=%(binary)s, " \
+ "manager_class_name=%(manager)s>" % {
+ 'cls_name': self.__class__.__name__,
+ 'host': self.host,
+ 'binary': self.binary,
+ 'manager': self.manager_class_name
+ }
+
def start(self):
verstr = version.version_string_with_package()
LOG.info(_LI('Starting %(topic)s node (version %(version)s)'),