diff options
| author | Josh Kearney <josh.kearney@rackspace.com> | 2011-02-16 11:11:49 -0600 |
|---|---|---|
| committer | Josh Kearney <josh.kearney@rackspace.com> | 2011-02-16 11:11:49 -0600 |
| commit | 4375069b6635d6ccd87231cb7d9f5b17708ffb1a (patch) | |
| tree | 223511c3a7fa9a533406055a2d9638b2ad29cbbb /nova/api | |
| parent | 029750943838b3512a8e1bcc1d92113b5a7f64e5 (diff) | |
| download | nova-4375069b6635d6ccd87231cb7d9f5b17708ffb1a.tar.gz nova-4375069b6635d6ccd87231cb7d9f5b17708ffb1a.tar.xz nova-4375069b6635d6ccd87231cb7d9f5b17708ffb1a.zip | |
Stubbed out flavor create/delete API calls
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/flavors.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nova/api/openstack/flavors.py b/nova/api/openstack/flavors.py index 9b674afbd..215f0b8a6 100644 --- a/nova/api/openstack/flavors.py +++ b/nova/api/openstack/flavors.py @@ -42,7 +42,6 @@ class Controller(wsgi.Controller): def detail(self, req): """Return all flavors in detail.""" items = [self.show(req, id)['flavor'] for id in self._all_ids()] - items = common.limited(items, req) return dict(flavors=items) def show(self, req, id): @@ -57,6 +56,14 @@ class Controller(wsgi.Controller): return dict(flavor=values) raise faults.Fault(exc.HTTPNotFound()) + def create(self, req): + """Create a flavor.""" + print "CREATE! %s" % req + + def delete(self, req, id): + """Delete a flavor.""" + print "DELETE! %s %s" % (req, id) + def _all_ids(self): """Return the list of all flavorids.""" # FIXME(kpepple) do we really need admin context here ? |
