summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorSandy Walsh <sandy.walsh@rackspace.com>2011-09-15 04:54:01 -0700
committerSandy Walsh <sandy.walsh@rackspace.com>2011-09-15 04:54:01 -0700
commit65e3f8201d88f231dfbd7934f5b920ae3b1d8e31 (patch)
tree000a6ec8976d1d8905a63228674133ad5c338791 /nova
parentfba1d427a941f1eb6971611cf1b016274ed19baa (diff)
pep8
Diffstat (limited to 'nova')
-rw-r--r--nova/scheduler/api.py1
-rw-r--r--nova/tests/scheduler/test_scheduler.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/nova/scheduler/api.py b/nova/scheduler/api.py
index df07026d7..d8315f007 100644
--- a/nova/scheduler/api.py
+++ b/nova/scheduler/api.py
@@ -393,6 +393,7 @@ class reroute_compute(object):
LOG.debug("****** COULD NOT FIND INSTANCE")
return exception.InstanceNotFound(instance_id=self.item_uuid)
+
def redirect_handler(f):
def new_f(*args, **kwargs):
try:
diff --git a/nova/tests/scheduler/test_scheduler.py b/nova/tests/scheduler/test_scheduler.py
index 022d93bcf..3acb91f72 100644
--- a/nova/tests/scheduler/test_scheduler.py
+++ b/nova/tests/scheduler/test_scheduler.py
@@ -1076,7 +1076,8 @@ class ZoneRedirectTest(test.TestCase):
def test_unmarshal_single_server(self):
decorator = api.reroute_compute("foo")
decorator.item_uuid = 'fake_uuid'
- self.assertTrue(isinstance(decorator.unmarshall_result([]), exception.InstanceNotFound))
+ self.assertTrue(isinstance(decorator.unmarshall_result([]),
+ exception.InstanceNotFound))
self.assertEquals(decorator.unmarshall_result(
[FakeResource(dict(a=1, b=2)), ]),
dict(server=dict(a=1, b=2)))