Esempio n. 1
0
 def __init__(self, image_api=None, **kwargs):
     super(API, self).__init__(**kwargs)
     self.image_api = image_api or image.API()
     self.engine_rpcapi = rpcapi.EngineAPI()
     self.network_api = network.API()
     self.quota = quota.Quota()
     self.quota.register_resource(objects.quota.ServerResource())
     self.consoleauth_rpcapi = consoleauth_rpcapi.ConsoleAuthAPI()
Esempio n. 2
0
 def __init__(self, *args, **kwargs):
     super(EngineManager, self).__init__(*args, **kwargs)
     self.quota = quota.Quota()
     self.quota.register_resource(objects.quota.ServerResource())
     self.scheduler_client = client.SchedulerClient()