Don't use mutables as default args
Bug #1327473 reported by
ChangBo Guo(gcb)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Low
|
Ivan Kolodyazhny | ||
OpenStack Compute (nova) |
Fix Released
|
Low
|
ChangBo Guo(gcb) | ||
OpenStack Heat |
Fix Released
|
Undecided
|
Liusheng | ||
neutron |
Fix Released
|
Low
|
Unassigned | ||
octavia |
Fix Released
|
Undecided
|
Bertrand Lallau | ||
oslo.messaging |
Fix Released
|
Low
|
ChangBo Guo(gcb) | ||
python-heatclient |
Fix Released
|
Low
|
Liusheng |
Bug Description
Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this.
This is an example show the pitfall:
http://
Changed in nova: | |
importance: | Undecided → Low |
Changed in oslo.messaging: | |
importance: | Undecided → Low |
Changed in cinder: | |
assignee: | nobody → Liusheng (liusheng) |
Changed in heat: | |
assignee: | nobody → Liusheng (liusheng) |
Changed in neutron: | |
assignee: | nobody → Liusheng (liusheng) |
Changed in neutron: | |
status: | New → In Progress |
Changed in cinder: | |
status: | New → In Progress |
Changed in heat: | |
status: | New → In Progress |
Changed in neutron: | |
milestone: | none → juno-2 |
importance: | Undecided → Low |
Changed in cinder: | |
assignee: | Liusheng (liusheng) → Ivan Kolodyazhny (e0ne) |
Changed in neutron: | |
milestone: | juno-2 → none |
Changed in cinder: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in heat: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in oslo.messaging: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | none → juno-2 |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
assignee: | Liusheng (liusheng) → Kevin Benton (kevinbenton) |
Changed in nova: | |
milestone: | juno-2 → 2014.2 |
Changed in cinder: | |
milestone: | juno-2 → 2014.2 |
Changed in heat: | |
milestone: | juno-2 → 2014.2 |
Changed in neutron: | |
assignee: | Kevin Benton (kevinbenton) → nobody |
Changed in neutron: | |
assignee: | nobody → Jonathan Bell (jbell-f) |
Changed in python-heatclient: | |
importance: | Undecided → Low |
status: | In Progress → Fix Released |
Changed in octavia: | |
assignee: | nobody → Bertrand Lallau (bertrand-lallau) |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in octavia: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is fix for Nova: /review. openstack. org/#/c/ 98339/
https:/