diff options
| author | Mark Washenberger <mark.washenberger@rackspace.com> | 2011-10-24 14:28:47 -0400 |
|---|---|---|
| committer | Mark Washenberger <mark.washenberger@rackspace.com> | 2011-10-26 15:11:47 -0400 |
| commit | 18e43e6b4dffba73dd35afb797dfa4e1d6cd00fe (patch) | |
| tree | 86feca1aad14f3c4e20bd630acb5fe9289698816 /nova/api | |
| parent | fa74f5c59da8e1641d97333d0b8ee6147fb17947 (diff) | |
| download | nova-18e43e6b4dffba73dd35afb797dfa4e1d6cd00fe.tar.gz nova-18e43e6b4dffba73dd35afb797dfa4e1d6cd00fe.tar.xz nova-18e43e6b4dffba73dd35afb797dfa4e1d6cd00fe.zip | |
Support server uuids with security groups
Change-Id: I15dd5a5e26b2d22fa3def75fa950f1155e6911ac
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/contrib/security_groups.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/nova/api/openstack/contrib/security_groups.py b/nova/api/openstack/contrib/security_groups.py index dd8333525..cd5561be6 100644 --- a/nova/api/openstack/contrib/security_groups.py +++ b/nova/api/openstack/contrib/security_groups.py @@ -349,10 +349,6 @@ class Security_groups(extensions.ExtensionDescriptor): try: body = input_dict['addSecurityGroup'] group_name = body['name'] - instance_id = int(instance_id) - except ValueError: - msg = _("Server id should be integer") - raise exc.HTTPBadRequest(explanation=msg) except TypeError: msg = _("Missing parameter dict") raise webob.exc.HTTPBadRequest(explanation=msg) @@ -382,10 +378,6 @@ class Security_groups(extensions.ExtensionDescriptor): try: body = input_dict['removeSecurityGroup'] group_name = body['name'] - instance_id = int(instance_id) - except ValueError: - msg = _("Server id should be integer") - raise exc.HTTPBadRequest(explanation=msg) except TypeError: msg = _("Missing parameter dict") raise webob.exc.HTTPBadRequest(explanation=msg) |
