Example #1
0
def get_quota():
    quota_driver = cfg.CONF.quota_driver

    LOG.debug("Loading quota driver: %s" % quota_driver)

    cls = Quota.get_driver(quota_driver)

    return cls()
Example #2
0
def get_quota():
    quota_driver = cfg.CONF.quota_driver

    LOG.debug("Loading quota driver: %s" % quota_driver)

    cls = Quota.get_driver(quota_driver)

    return cls()
Example #3
0
def get_quota():
    return Quota.get_plugin(cfg.CONF.quota_driver, invoke_on_load=True)
Example #4
0
def get_quota():
    return Quota.get_plugin(cfg.CONF.quota_driver, invoke_on_load=True)
Example #5
0
def get_quota():
    quota_driver = cfg.CONF['service:central'].quota_driver

    return Quota.get_plugin(quota_driver, invoke_on_load=True)