indenting cleanup

This commit is contained in:
Sandy Walsh
2011-03-23 12:31:15 -07:00
parent a0875a3ee6
commit 1cc34ddc16
5 changed files with 9 additions and 6 deletions

View File

@@ -59,6 +59,8 @@ from nova.scheduler import api
FLAGS = flags.FLAGS FLAGS = flags.FLAGS
LOG = logging.getLogger('nova.manager')
class Manager(base.Base): class Manager(base.Base):
def __init__(self, host=None, db_driver=None): def __init__(self, host=None, db_driver=None):
@@ -83,6 +85,7 @@ class SchedulerDependentManager(Manager):
should derive from this class. Otherwise they can derive from should derive from this class. Otherwise they can derive from
manager.Manager directly. Updates are only sent after manager.Manager directly. Updates are only sent after
update_service_capabilities is called with non-None values.""" update_service_capabilities is called with non-None values."""
def __init__(self, host=None, db_driver=None, service_name="undefined"): def __init__(self, host=None, db_driver=None, service_name="undefined"):
self.last_capabilities = None self.last_capabilities = None
self.service_name = service_name self.service_name = service_name
@@ -95,7 +98,7 @@ class SchedulerDependentManager(Manager):
def periodic_tasks(self, context=None): def periodic_tasks(self, context=None):
"""Pass data back to the scheduler at a periodic interval""" """Pass data back to the scheduler at a periodic interval"""
if self.last_capabilities: if self.last_capabilities:
logging.debug(_("Notifying Schedulers of capabilities ...")) LOG.debug(_("Notifying Schedulers of capabilities ..."))
api.update_service_capabilities(context, self.service_name, api.update_service_capabilities(context, self.service_name,
self.host, self.last_capabilities) self.host, self.last_capabilities)