]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Nested Quota: Set default values to subproject
authorVilobh Meshram <vilobhmm@yahoo-inc.com>
Mon, 22 Jun 2015 21:45:02 +0000 (14:45 -0700)
committerErickson Santos <erickson@lsd.ufcg.edu.br>
Wed, 8 Jul 2015 18:18:34 +0000 (15:18 -0300)
commit828894e4daefeee4b90a4e13d5c28faf88857312
tree0efb73d87e07d374580dc179ce2d5c5a4195727a
parent87016e624b8dd5574d0c678e5869510b1358a7da
Nested Quota: Set default values to subproject

In case of hierarchical projects set the default value
(for resources who have the resource flag set) for a
sub-project to zero. This patch adds this functionality for
hierarchical projects, while keeping the functionality
intact for non-hierarchical project. At the top level,
project resources will get the default values as imposed
by the "default" class settings.

Co-Authored-By: Erickson Santos <erickson@lsd.ufcg.edu.br>
Change-Id: I3b357464d5e5e0aa065506ac1e9d908e87f45c63
Partially-Implements: bp cinder-nested-quota-driver
cinder/api/contrib/quotas.py
cinder/quota.py
cinder/tests/unit/test_quota.py