]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fallback to Quota Conf Driver if Quotas table is not defined
authorAkihiro MOTOKI <motoki@da.jp.nec.com>
Wed, 9 Oct 2013 10:50:35 +0000 (19:50 +0900)
committerAkihiro MOTOKI <motoki@da.jp.nec.com>
Wed, 9 Oct 2013 13:28:03 +0000 (22:28 +0900)
commit46495f4995b6604cb249b688aaa249ef4e8b18ef
tree4741e8ce8e05d6b38c299ec4cfecf4df358a5d73
parent434b8b01bce5c06e3011aa357d02e77b3a18ef62
Fallback to Quota Conf Driver if Quotas table is not defined

commit de15e0b9c5 enabled Quota DB driver default considering
production environments, but it breaks plugins without per-tenant
quota extension. In these plugin quotas tables is not loaded.

This commit fallbacks to ConfDriver if Quota model is not loaded by
checking neutron.db.quota_db which defines Quota model is imported.

Change-Id: Idaaaa9810598cfd3e5ce70020f498643b4819d16
Closes-Bug: #1236993
neutron/quota.py
neutron/tests/unit/test_quota_ext.py