diff options
| author | Josh Kearney <josh@jk0.org> | 2011-09-08 16:10:03 -0500 |
|---|---|---|
| committer | Josh Kearney <josh@jk0.org> | 2011-09-08 16:10:03 -0500 |
| commit | aec647b3b42c4cd56a9509c2d1ac25ff12b0664e (patch) | |
| tree | 560d7c7d7f6f5853005dcd3e0a48b641a1714e4c /nova/api | |
| parent | bb3b61b61dc4b45fba4bdab7ead69af239eac40a (diff) | |
First pass at adding reboot_type to reboot codepath.
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/servers.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index d084ac360..f5447edc5 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -334,9 +334,8 @@ class Controller(object): LOG.exception(msg) raise exc.HTTPBadRequest(explanation=msg) try: - # TODO(gundlach): pass reboot_type, support soft reboot in - # virt driver - self.compute_api.reboot(req.environ['nova.context'], id) + self.compute_api.reboot(req.environ['nova.context'], id, + reboot_type) except Exception, e: LOG.exception(_("Error in reboot %s"), e) raise exc.HTTPUnprocessableEntity() |
