summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandy Walsh <sandy.walsh@rackspace.com>2011-03-21 11:07:19 -0700
committerSandy Walsh <sandy.walsh@rackspace.com>2011-03-21 11:07:19 -0700
commitb1def6b2b104a143b7491cef9a01babe9ab3e75d (patch)
tree3c4a0fc19e7084efeb429ce39333e2bbeebd7a58
parent7976fb08d89a8e8b6bf8c276a50e30ae11584ce3 (diff)
downloadnova-b1def6b2b104a143b7491cef9a01babe9ab3e75d.tar.gz
nova-b1def6b2b104a143b7491cef9a01babe9ab3e75d.tar.xz
nova-b1def6b2b104a143b7491cef9a01babe9ab3e75d.zip
pep8
-rw-r--r--nova/scheduler/api.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/scheduler/api.py b/nova/scheduler/api.py
index 935e7b366..aebfe1770 100644
--- a/nova/scheduler/api.py
+++ b/nova/scheduler/api.py
@@ -127,7 +127,7 @@ def wrap_novaclient_function(f, collection, method_name, item_id):
(nova, zone) call from child_zone_helper."""
def inner(nova, zone):
return f(nova, zone, collection, method_name, item_id)
-
+
return inner
@@ -139,6 +139,7 @@ class RedirectResult(exception.Error):
super(RedirectResult, self).__init__(
message=_("Uncaught Zone redirection exception"))
+
class reroute_compute(object):
"""Decorator used to indicate that the method should
delegate the call the child zones if the db query
@@ -158,7 +159,7 @@ class reroute_compute(object):
if not FLAGS.enable_zone_routing:
raise
-
+
zones = db.zone_get_all(context)
if not zones:
raise