From 1892c2851d33eb2f5e6bb1faf0610c710888cd68 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Mon, 26 Mar 2012 20:38:03 +0000 Subject: Allow self-referential groups to be created fixes bug 965674 Change-Id: I41db135f6437e1f1cb496528ae4d134c0d9cb744 --- nova/api/openstack/compute/contrib/security_groups.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/contrib/security_groups.py b/nova/api/openstack/compute/contrib/security_groups.py index 3c7a0dcbe..0d85c7b87 100644 --- a/nova/api/openstack/compute/contrib/security_groups.py +++ b/nova/api/openstack/compute/contrib/security_groups.py @@ -414,10 +414,6 @@ class SecurityGroupRulesController(SecurityGroupControllerBase): msg = _("Parent or group id is not integer") raise exception.InvalidInput(reason=msg) - if parent_group_id == group_id: - msg = _("Parent group id and group id cannot be same") - raise exception.InvalidInput(reason=msg) - values['group_id'] = group_id #check if groupId exists db.security_group_get(context, group_id) -- cgit