]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Cleanup unused code in servce.py
authorZhiteng Huang <zhiteng.huang@intel.com>
Mon, 23 Jul 2012 03:17:26 +0000 (11:17 +0800)
committerZhiteng Huang <zhiteng.huang@intel.com>
Mon, 23 Jul 2012 03:17:26 +0000 (11:17 +0800)
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

index d04409e5cb11144c7a6160ef9ae530a2d0018b2a..55ee25c9d040c177d36af34d13170edb5d4a1e00 100644 (file)
@@ -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)