summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorEd Leafe <ed@leafe.com>2011-08-02 19:02:40 +0000
committerEd Leafe <ed@leafe.com>2011-08-02 19:02:40 +0000
commitf06dee2b82bd658a57736d94974f431976085400 (patch)
treecddf3829354e156ace67849989a4f38d0e53d5db /nova/api
parent5b11fe047ac9f58c88a771707a7c59ca4f5bd0f9 (diff)
downloadnova-f06dee2b82bd658a57736d94974f431976085400.tar.gz
nova-f06dee2b82bd658a57736d94974f431976085400.tar.xz
nova-f06dee2b82bd658a57736d94974f431976085400.zip
Fixed several typos
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/contrib/hosts.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/nova/api/openstack/contrib/hosts.py b/nova/api/openstack/contrib/hosts.py
index 94fba910c..2d9d494b9 100644
--- a/nova/api/openstack/contrib/hosts.py
+++ b/nova/api/openstack/contrib/hosts.py
@@ -85,7 +85,7 @@ class HostController(object):
# 'startup' option to start up a host, but this is not
# technically feasible now, as we run the host on the
# XenServer box.
- msg = _("Host startup on XenServer is not supported."))
+ msg = _("Host startup on XenServer is not supported.")
raise webob.exc.HTTPBadRequest(explanation=msg)
elif val in ("reboot", "shutdown"):
return self._set_powerstate(req, id, val)
@@ -106,8 +106,7 @@ class HostController(object):
return {"host": host, "status": result}
def _set_powerstate(self, req, host, state):
- """Reboots or shuts down the host.
- """
+ """Reboots or shuts down the host."""
context = req.environ['nova.context']
result = self.compute_api.set_host_powerstate(context, host=host,
state=state)