Inconsistent database API method naming for instance_types
Bug #813006 reported by
Matt Dietz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Wishlist
|
Matt Dietz |
Bug Description
This is simply a clean up bug. The convention when retrieving a record from the DB by id is to name the method <model>_get. The corresponding method for instance_type is instance_
Related branches
lp:~cerberus/nova/lp813006
- Brian Waldon (community): Approve
- Brian Lamar (community): Approve
- Jay Pipes (community): Approve
-
Diff: 204 lines (+20/-21)10 files modifiednova/compute/instance_types.py (+1/-1)
nova/compute/manager.py (+1/-1)
nova/db/api.py (+2/-2)
nova/db/sqlalchemy/api.py (+1/-1)
nova/network/manager.py (+1/-2)
nova/tests/db/fakes.py (+4/-4)
nova/tests/test_compute.py (+3/-3)
nova/tests/test_instance_types_extra_specs.py (+4/-4)
nova/tests/test_network.py (+2/-2)
nova/virt/libvirt/netutils.py (+1/-1)
Changed in nova: | |
status: | New → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-3 |
Changed in nova: | |
milestone: | diablo-3 → 2011.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.