diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-05-30 11:02:55 -0700 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-05-30 11:02:55 -0700 |
| commit | c9b4bf8f3eb3bdb51b51b98b6f283415229c2e0e (patch) | |
| tree | 089b28dca6602ef8b7b2f1d97421cd184154f43b /nova/api | |
| parent | cc7aec17929414c58bbfdde609930e66e6f17028 (diff) | |
first pass at reservation id support
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/zones.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nova/api/openstack/zones.py b/nova/api/openstack/zones.py index 29b7b2279..7b495cecf 100644 --- a/nova/api/openstack/zones.py +++ b/nova/api/openstack/zones.py @@ -114,6 +114,13 @@ class Controller(common.OpenstackController): zone = api.zone_update(context, zone_id, env["zone"]) return dict(zone=_scrub_zone(zone)) + def boot(self, req): + """Creates a new server for a given user while being Zone aware.""" + reservation_id = \ + common.create(req, self.compute_api.create_all_at_once) + + return {'reservation': {'reservation_id': reservation_id}} + @check_encryption_key def select(self, req): """Returns a weighted list of costs to create instances |
