diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-03-26 20:38:03 +0000 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2012-03-26 21:06:01 +0000 |
| commit | 1892c2851d33eb2f5e6bb1faf0610c710888cd68 (patch) | |
| tree | 498d2c4a7d605efa31d46860b9afa3c42aac5cda /nova/api | |
| parent | 3433fd65d5f70d83ffa4db013f96c55970ea293e (diff) | |
Allow self-referential groups to be created
fixes bug 965674
Change-Id: I41db135f6437e1f1cb496528ae4d134c0d9cb744
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/contrib/security_groups.py | 4 |
1 files changed, 0 insertions, 4 deletions
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) |
