summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-03-22 23:47:16 +0000
committerGerrit Code Review <review@openstack.org>2012-03-22 23:47:16 +0000
commitf32085653e0947f3371f3e95b8fb6438d360bce8 (patch)
tree70476b98d87841f729e3a3d2994eaa100cb870c2 /nova/api
parent164fb0cd52f00dafb506952374168ce20309a5ea (diff)
parentb15bfc2edd5d3dd0dca805786bdcf22d3fb0339d (diff)
downloadnova-f32085653e0947f3371f3e95b8fb6438d360bce8.tar.gz
nova-f32085653e0947f3371f3e95b8fb6438d360bce8.tar.xz
nova-f32085653e0947f3371f3e95b8fb6438d360bce8.zip
Merge "Fixed status validation. Fixes bug 960884."
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/contrib/hosts.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/contrib/hosts.py b/nova/api/openstack/compute/contrib/hosts.py
index 93e0dd983..a93da9e01 100644
--- a/nova/api/openstack/compute/contrib/hosts.py
+++ b/nova/api/openstack/compute/contrib/hosts.py
@@ -138,7 +138,7 @@ class HostController(object):
key = raw_key.lower().strip()
val = raw_val.lower().strip()
if key == "status":
- if val[:6] in ("enable", "disabl"):
+ if val in ("enable", "disable"):
update_values['status'] = val.startswith("enable")
else:
explanation = _("Invalid status: '%s'") % raw_val