diff options
| author | Josh Kearney <josh.kearney@rackspace.com> | 2011-02-17 14:42:01 -0600 |
|---|---|---|
| committer | Josh Kearney <josh.kearney@rackspace.com> | 2011-02-17 14:42:01 -0600 |
| commit | aa53c9476ed37f0a1359413d4a710eb08c997b06 (patch) | |
| tree | 1383ba5d1f9cfefddf75f163cee3693f64683cd6 /nova/api | |
| parent | 9d953acc0ff572b9ed6fe16b83026f85776ddc04 (diff) | |
| download | nova-aa53c9476ed37f0a1359413d4a710eb08c997b06.tar.gz nova-aa53c9476ed37f0a1359413d4a710eb08c997b06.tar.xz nova-aa53c9476ed37f0a1359413d4a710eb08c997b06.zip | |
Finished flavor OS API stubs
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/flavors.py | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/nova/api/openstack/flavors.py b/nova/api/openstack/flavors.py index a3a664506..375e12b18 100644 --- a/nova/api/openstack/flavors.py +++ b/nova/api/openstack/flavors.py @@ -58,21 +58,23 @@ class Controller(wsgi.Controller): def create(self, req): """Create a flavor.""" - instance_types.create( - name, - memory, - vcpus, - local_gb, - flavor_id, - swap, - rxtx_quota, - rxtx_cap) - print "CREATE! %s" % req + #TODO(jk0): Finish this later + #instance_types.create( + # name, + # memory, + # vcpus, + # local_gb, + # flavor_id, + # swap, + # rxtx_quota, + # rxtx_cap) + return "CREATE! %s" % req - def delete(self, req, name): + def delete(self, req, id): """Delete a flavor.""" - instance_type.destroy(name) - print "DELETE! %s %s" % (req, name) + #TODO(jk0): Finish this later + #instance_type.destroy(name) + return "DELETE! %s %s" % (req, id) def _all_ids(self): """Return the list of all flavorids.""" |
