示例#1
0
文件: mc.py 项目: StackOps/nova
 def __init__(self, *args, **kwargs):
     test = kwargs.get('test')
     if not CONF.memcached_servers and not test:
         raise RuntimeError(_('memcached_servers not defined'))
     self.mc = memorycache.get_client()
     self.db_allowed = kwargs.get('db_allowed', True)
     self.conductor_api = conductor.API(use_local=self.db_allowed)
示例#2
0
文件: __init__.py 项目: MVillari/nova
 def __init__(self, application):
     """middleware can use fake for testing."""
     self.mc = memorycache.get_client()
     super(Lockout, self).__init__(application)
示例#3
0
 def __init__(self):
     self._cache = memorycache.get_client()
示例#4
0
 def __init__(self, application):
     """middleware can use fake for testing."""
     self.mc = memorycache.get_client()
     super(Lockout, self).__init__(application)
示例#5
0
文件: manager.py 项目: blahRus/nova
 def __init__(self, scheduler_driver=None, *args, **kwargs):
     super(ConsoleAuthManager, self).__init__(*args, **kwargs)
     self.mc = memorycache.get_client()
示例#6
0
文件: handler.py 项目: fifieldt/nova
 def __init__(self):
     self._cache = memorycache.get_client()
     self.conductor_api = conductor.API()
示例#7
0
文件: manager.py 项目: StackOps/nova
 def __init__(self, scheduler_driver=None, *args, **kwargs):
     super(ConsoleAuthManager, self).__init__(*args, **kwargs)
     self.mc = memorycache.get_client()
     self.compute_rpcapi = compute_rpcapi.ComputeAPI()
     self.conductor_api = conductor_api.API()
示例#8
0
文件: manager.py 项目: asadoughi/nova
 def __init__(self, scheduler_driver=None, *args, **kwargs):
     super(ConsoleAuthManager, self).__init__(*args, **kwargs)
     self.mc = memorycache.get_client()