summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorEd Leafe <ed@leafe.com>2011-08-02 21:11:12 +0000
committerEd Leafe <ed@leafe.com>2011-08-02 21:11:12 +0000
commit1d3d1d5fb552f2dc80c39ad15d89d59bfc7f873a (patch)
tree8b042433e368abfba422f6a070e059674319a4be /nova/api
parent4c07cac5b0e79f3911fbcc392c3f9e7f07333968 (diff)
Minor test fixes
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/contrib/hosts.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/api/openstack/contrib/hosts.py b/nova/api/openstack/contrib/hosts.py
index e9f82c75b..c90a889d5 100644
--- a/nova/api/openstack/contrib/hosts.py
+++ b/nova/api/openstack/contrib/hosts.py
@@ -78,7 +78,7 @@ class HostController(object):
else:
explanation = _("Invalid status: '%s'") % raw_val
raise webob.exc.HTTPBadRequest(explanation=explanation)
- elif key == "powerstate":
+ elif key == "power_state":
if val == "startup":
# The only valid values for 'state' are 'reboot' or
# 'shutdown'. For completeness' sake there is the
@@ -113,7 +113,7 @@ class HostController(object):
context = req.environ['nova.context']
result = self.compute_api.set_host_powerstate(context, host=host,
state=state)
- return {"host": host, "powerstate": result}
+ return {"host": host, "power_state": result}
class Hosts(extensions.ExtensionDescriptor):