]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix get default quota values for subprojects
authorErickson Santos <erickson@lsd.ufcg.edu.br>
Mon, 27 Jul 2015 17:52:47 +0000 (14:52 -0300)
committerVilobh Meshram <vilobhmm@yahoo-inc.com>
Tue, 28 Jul 2015 21:26:39 +0000 (14:26 -0700)
commite2eb94bdbbe7dae57247cdf0e9f06debceb673cb
tree3edf41304f46165d68f9bbc8e950542b65859b3c
parent94e3098238f4af32f6ffa85833d0107cab07c14c
Fix get default quota values for subprojects

When getting the default quota value for a project, the DBQuotaDriver
is just checking if the default_quota_class CONF is set to True.
But this conf should not be considered when getting default quota
values for subprojects.

Previously, when we asked for the default quota values of a
subproject, the default quota values of the root project was returned.

Co-Authored-By: Vilobh Meshram <vilobhmm@yahoo-inc.com>
Change-Id: Ib88bafca915dfd387086c353c25b2af037e6d50f
Closes-bug: #1478651
cinder/quota.py
cinder/tests/unit/test_quota.py