summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorSandy Walsh <sandy.walsh@rackspace.com>2011-03-16 19:26:54 -0700
committerSandy Walsh <sandy.walsh@rackspace.com>2011-03-16 19:26:54 -0700
commit609a912fa8a816c1f47140489dcc1131356cd67c (patch)
tree0b39ed1464f20d16f299939997001e24ceb2f626 /nova/api
parentcfe77c1236b68aa96dd85503582e08a07a23f77f (diff)
downloadnova-609a912fa8a816c1f47140489dcc1131356cd67c.tar.gz
nova-609a912fa8a816c1f47140489dcc1131356cd67c.tar.xz
nova-609a912fa8a816c1f47140489dcc1131356cd67c.zip
pep8
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/zone_redirect.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nova/api/zone_redirect.py b/nova/api/zone_redirect.py
index 4fe255c99..7ebae1401 100644
--- a/nova/api/zone_redirect.py
+++ b/nova/api/zone_redirect.py
@@ -48,7 +48,7 @@ class RequestForwarder(api.ChildZoneHelper):
self.resource = resource
self.method = method
self.body = body
-
+
def process(self, client, zone):
api_url = zone.api_url
LOG.debug(_("Zone redirect to: %(api_url)s, " % locals()))
@@ -89,12 +89,12 @@ class ZoneRedirectMiddleware(wsgi.Middleware):
return req.get_response(self.application)
except exception.ZoneRouteException as e:
if not e.zones:
- exc = webob.exc.HTTPInternalServerError(explanation=
- _("No zones to reroute to."))
+ exc = webob.exc.HTTPInternalServerError(explanation=_(
+ "No zones to reroute to."))
return faults.Fault(exc)
# Todo(sandy): This only works for OpenStack API currently.
- # Needs to be broken out into a driver.
+ # Needs to be broken out into a driver.
scheme, netloc, path, query, frag = \
urlparse.urlsplit(req.path_qs)
query = urlparse.parse_qsl(query)