Redundant code in quantum.api.v2.base.create()
Bug #1093390 reported by
Zhongyue Luo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Zhongyue Luo |
Bug Description
The quota check routine has duplicated code between collections and one item.
It can be refactored to use the same code by creating a item list for both cases.
i.e
if self._collection in body:
# Have to account for bulk create
else:
Changed in quantum: | |
milestone: | none → grizzly-2 |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | grizzly-2 → 2013.1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/18612
Review: https:/