]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Recalculate allocated value of parent project
authorcheneydc <dongc@neunn.com>
Fri, 11 Dec 2015 06:28:44 +0000 (14:28 +0800)
committercheneydc <dongc@neunn.com>
Mon, 14 Dec 2015 13:56:15 +0000 (21:56 +0800)
commita874b24278a24c180c9cd843991cb2c1c5223faa
tree490d86f4857bed0bb7d221ab3c289a93370136e4
parent7b15095907a6acc0db238cdeae8f0ea9868e391b
Recalculate allocated value of parent project

After update the child project quota, the new value should
not be accumulated to the 'allocated' value of parent
project.

So 'allocated' value should subtract the original child
project quota when it's updated.

Closes-Bug: #1525057

Change-Id: Icff845a034eb582d452b90270ca5dbce4bf1b5b6
cinder/api/contrib/quotas.py
cinder/tests/unit/api/contrib/test_quotas.py