summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-11-01 20:46:39 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-11-01 20:46:39 +0000
commitbaf7916bf916af82ed264381192e9e70eb0817b4 (patch)
treec4ee8c21a3b102d8d56495d4a3afdac70ebd8f0f /nova/api
parent71bd02356b41f682c6a196f75e0ed1accc8f5fb6 (diff)
Fix empty group_id to be considered invalid
And fix the test suite to actually try an empty group id correctly Change-Id: I54e61637b9b230d352e35b9b7964ab10c4eb9a25
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/contrib/security_groups.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/contrib/security_groups.py b/nova/api/openstack/contrib/security_groups.py
index 662711951..9072a34ee 100644
--- a/nova/api/openstack/contrib/security_groups.py
+++ b/nova/api/openstack/contrib/security_groups.py
@@ -251,7 +251,7 @@ class SecurityGroupRulesController(SecurityGroupController):
cidr=None, group_id=None):
values = {}
- if group_id:
+ if group_id is not None:
try:
parent_group_id = int(parent_group_id)
group_id = int(group_id)