summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSalvatore Orlando <salvatore.orlando@eu.citrix.com>2011-03-25 01:23:33 +0000
committerSalvatore Orlando <salvatore.orlando@eu.citrix.com>2011-03-25 01:23:33 +0000
commit73df3e0cd54dc3b5409fba7b38ada6ee07bd911d (patch)
tree1b4e258e16b520d61766c478fe78b774b3a4a221
parentb4f682a03678699404d2bac259c955bbc434f36a (diff)
minor pep8 fix in db/fakes.py
-rw-r--r--nova/tests/db/fakes.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/tests/db/fakes.py b/nova/tests/db/fakes.py
index c46b75aa2..21a5481bd 100644
--- a/nova/tests/db/fakes.py
+++ b/nova/tests/db/fakes.py
@@ -108,9 +108,7 @@ def stub_out_db_instance_api(stubs, injected=True):
return FakeModel(fixed_ip_fields).address
def fake_fixed_ip_get_all_by_instance(context, instance_id):
- l = []
- l.append(FakeModel(fixed_ip_fields))
- return l
+ return [FakeModel(fixed_ip_fields)]
stubs.Set(db, 'network_get_by_instance', fake_network_get_by_instance)
stubs.Set(db, 'instance_type_get_all', fake_instance_type_get_all)