예제 #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
파일: handler.py 프로젝트: bopopescu/zknova
 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()