]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Made provision for providing optional arguments
authorabhishekkekane <abhishek.kekane@nttdata.com>
Tue, 10 Jun 2014 06:29:20 +0000 (06:29 +0000)
committerabhishekkekane <abhishek.kekane@nttdata.com>
Mon, 16 Jun 2014 06:41:00 +0000 (06:41 +0000)
commit971a63bd9cf675a00bce1244ec101577b5c17cac
treeebc5b385ac924a25893aa0b1537778ba1bc2312f
parent86643780bc2cf1f7a467a7c65aab64e3110d031e
Made provision for providing optional arguments

The 'quota_committed' attribute of 'RequestContext' object is
a transient property, so it will not be saved in the taskflow
persistent storage. The updated value of 'quota_committed'
attribute will not be available while resuming/reverting the
flow, if cinder api-service is down/stopped after committing
the quota.

Since this 'quota_committed' attribute is not used anywhere
in cinder project other than in create-volume taskflow api, so
removed 'quota_committed' from RequestContext and made
provision to pass it as an optional argument which will be
passed to api-flow via create_what dictionary, in order to
make it persistent and use it as and when needed.

Change-Id: I719067a8e1824add45fb525c106642a9c0e6bb46
cinder/context.py
cinder/volume/api.py
cinder/volume/flows/api/create_volume.py