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()
def get_quota(): return Quota.get_plugin(cfg.CONF.quota_driver, invoke_on_load=True)
def get_quota(): quota_driver = cfg.CONF['service:central'].quota_driver return Quota.get_plugin(quota_driver, invoke_on_load=True)