summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-11-16 03:39:12 +0000
committerGerrit Code Review <review@openstack.org>2012-11-16 03:39:12 +0000
commit51e2d438beab35705019974cf8f59b646bb92a7f (patch)
treebd1842c48146b9911dd542cc0a23dacdba0b96a8 /nova/api
parent71078dfc7177f64e1e79d2e9375c0c99865381b1 (diff)
parentfa26d7fcc6a30d500ca9c0c5b966fa3ab17ac6fc (diff)
downloadnova-51e2d438beab35705019974cf8f59b646bb92a7f.tar.gz
nova-51e2d438beab35705019974cf8f59b646bb92a7f.tar.xz
nova-51e2d438beab35705019974cf8f59b646bb92a7f.zip
Merge "Ditch unused import and variable"
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/contrib/fixed_ips.py4
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)