diff options
| author | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-03-21 11:07:19 -0700 |
|---|---|---|
| committer | Sandy Walsh <sandy.walsh@rackspace.com> | 2011-03-21 11:07:19 -0700 |
| commit | b1def6b2b104a143b7491cef9a01babe9ab3e75d (patch) | |
| tree | 3c4a0fc19e7084efeb429ce39333e2bbeebd7a58 | |
| parent | 7976fb08d89a8e8b6bf8c276a50e30ae11584ce3 (diff) | |
| download | nova-b1def6b2b104a143b7491cef9a01babe9ab3e75d.tar.gz nova-b1def6b2b104a143b7491cef9a01babe9ab3e75d.tar.xz nova-b1def6b2b104a143b7491cef9a01babe9ab3e75d.zip | |
pep8
| -rw-r--r-- | nova/scheduler/api.py | 5 |
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 |
