diff options
| author | Ed Leafe <ed@leafe.com> | 2011-08-02 19:02:40 +0000 |
|---|---|---|
| committer | Ed Leafe <ed@leafe.com> | 2011-08-02 19:02:40 +0000 |
| commit | f06dee2b82bd658a57736d94974f431976085400 (patch) | |
| tree | cddf3829354e156ace67849989a4f38d0e53d5db /nova/api | |
| parent | 5b11fe047ac9f58c88a771707a7c59ca4f5bd0f9 (diff) | |
| download | nova-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.py | 5 |
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) |
