diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-03-30 00:49:19 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-03-30 00:49:19 +0000 |
| commit | 75676812e867a36778fa5b1beb3d2dbfcb87bec2 (patch) | |
| tree | 070d30a492e552695abc1443aec18a04d5ec3050 /nova/api | |
| parent | 7bd863faf454a19c8e1caac556cefaf24722887d (diff) | |
| parent | 1892c2851d33eb2f5e6bb1faf0610c710888cd68 (diff) | |
| download | nova-75676812e867a36778fa5b1beb3d2dbfcb87bec2.tar.gz nova-75676812e867a36778fa5b1beb3d2dbfcb87bec2.tar.xz nova-75676812e867a36778fa5b1beb3d2dbfcb87bec2.zip | |
Merge "Allow self-referential groups to be created"
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) |
