From 111b7534b602d62e4984ada998f757038677b745 Mon Sep 17 00:00:00 2001 From: Zhiteng Huang Date: Mon, 23 Jul 2012 11:17:26 +0800 Subject: [PATCH] Cleanup unused code in servce.py Remove unused code in Service() class which is meant to be used by 'nova-compute'. Change-Id: Iadd58914c7fb7a581f9878880908aabcfa5733d6 Signed-off-by: zhiteng.huang@intel.com --- cinder/service.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/cinder/service.py b/cinder/service.py index d04409e5c..55ee25c9d 100644 --- a/cinder/service.py +++ b/cinder/service.py @@ -167,9 +167,6 @@ class Service(object): except exception.NotFound: self._create_service_ref(ctxt) - if 'cinder-compute' == self.binary: - self.manager.update_available_resource(ctxt) - self.conn = rpc.create_connection(new=True) LOG.debug(_("Creating Consumer connection for Service %s") % self.topic) -- 2.45.2