diff options
| author | Chris Behrens <cbehrens@codestud.com> | 2012-11-15 21:56:23 +0000 |
|---|---|---|
| committer | Chris Behrens <cbehrens@codestud.com> | 2012-11-16 02:55:54 +0000 |
| commit | fa26d7fcc6a30d500ca9c0c5b966fa3ab17ac6fc (patch) | |
| tree | 8157a98c74ea7c1202dbe99dd66f4b682673dfd4 | |
| parent | 90dffc3a9c69aa5ffab23d2a28a8f669ef18be97 (diff) | |
Ditch unused import and variable
Removes a couple of unused things in fixed_ips API extension
Change-Id: I2c4530339be11ea45b58437ce20a9b065f9b24c7
| -rw-r--r-- | nova/api/openstack/compute/contrib/fixed_ips.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/api/openstack/compute/contrib/fixed_ips.py b/nova/api/openstack/compute/contrib/fixed_ips.py index 178847d64..da20f5334 100644 --- a/nova/api/openstack/compute/contrib/fixed_ips.py +++ b/nova/api/openstack/compute/contrib/fixed_ips.py @@ -15,11 +15,9 @@ # License for the specific language governing permissions and limitations # under the License. -import urllib import webob.exc from nova.api.openstack import extensions -from nova.api.openstack import wsgi from nova import db from nova import exception from nova.openstack.common import log as logging @@ -72,7 +70,7 @@ class FixedIPController(object): fixed_ip = db.fixed_ip_get_by_address(context, address) db.fixed_ip_update(context, fixed_ip['address'], {'reserved': reserved}) - except exception.FixedIpNotFoundForAddress as ex: + except exception.FixedIpNotFoundForAddress: msg = _("Fixed IP %s not found") % address raise webob.exc.HTTPNotFound(explanation=msg) |
