diff options
| author | Lorin Hochstein <lorin@isi.edu> | 2011-06-22 22:43:44 -0400 |
|---|---|---|
| committer | Lorin Hochstein <lorin@isi.edu> | 2011-06-22 22:43:44 -0400 |
| commit | 173bb3c54b7ce9874f6bf880a5df8966fd508c38 (patch) | |
| tree | 29e14ee53a1693b674ed5d255b393dc9e2ecfd9f /nova/api | |
| parent | a9de2c26432b0b6c77e941db0199fd72a54e2d69 (diff) | |
Bug fixing
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/flavor_extra_specs.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/nova/api/openstack/flavor_extra_specs.py b/nova/api/openstack/flavor_extra_specs.py index 2dcd85688..d14bed813 100644 --- a/nova/api/openstack/flavor_extra_specs.py +++ b/nova/api/openstack/flavor_extra_specs.py @@ -26,14 +26,10 @@ from nova.api.openstack import wsgi class Controller(object): """ The flavor extra specs API controller for the Openstack API """ - def __init__(self): - self.compute_api = compute.API() - super(Controller, self).__init__() - def _get_extra_specs(self, context, flavor_id): - extra_specs = self.db.instance_type_extra_specs_get(context, flavor_id) + extra_specs = db.instance_type_extra_specs_get(context, flavor_id) specs_dict = {} - for key, value in specs.iteritems(): + for key, value in extra_specs.iteritems(): specs_dict[key] = value return dict(extra=specs_dict) |
