From: Zhiteng Huang Date: Mon, 23 Jul 2012 03:17:26 +0000 (+0800) Subject: Cleanup unused code in servce.py X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=111b7534b602d62e4984ada998f757038677b745;p=openstack-build%2Fcinder-build.git 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 --- 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)