Redundant code in quantum.apit.api_common
Bug #1102313 reported by
Zhongyue Luo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Undecided
|
Zhongyue Luo |
Bug Description
None is redundant in line 3
Line 8 is not required
1 for param in params:
2 param_name = param['param-name']
3 param_value = data.get(
4 # If the parameter wasn't found and it was required, return 400
5 if param_value is None and param['required']:
6 msg = ("Failed to parse request. " +
7 "Parameter: " + param_name + " not specified")
8 for line in msg.split('\n'):
9 LOG.error(line)
10 raise exc.HTTPBadRequ
11 data[param_name] = param_value or param.get(
12 return body
Changed in quantum: | |
milestone: | none → grizzly-3 |
summary: |
- Redundnat code in quantum.apit.api_common + Redundant code in quantum.apit.api_common |
Changed in quantum: | |
status: | Fix Committed → Fix Released |
Changed in quantum: | |
milestone: | grizzly-3 → 2013.1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/20114
Review: https:/