summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Kölker <jason@koelker.net>2011-05-24 15:59:08 -0500
committerJason Kölker <jason@koelker.net>2011-05-24 15:59:08 -0500
commit4ee88c529760fcf2a20a3721f7c189a5067ea498 (patch)
treeaf43a94f885cb23056a853faa9536e2f4126e1b9
parentf2aca8fe4b1ddb611b9b2c73619dcdeeb3603445 (diff)
create a mac address entry and blindly use the first network
-rw-r--r--nova/tests/test_virt.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/test_virt.py b/nova/tests/test_virt.py
index ec004800b..d1ef2d43f 100644
--- a/nova/tests/test_virt.py
+++ b/nova/tests/test_virt.py
@@ -623,9 +623,9 @@ class IptablesFirewallTestCase(test.TestCase):
# NOTE(jkoelker): This just takes the first network and runs with it
# Should probably do something more inteligent
- networks_ref = db.project_get_network(self.context,
- 'fake',
- associate=False)[0]
+ networks_ref = db.project_get_networks(self.context,
+ 'fake',
+ associate=False)[0]
mac_address = {'address': '56:12:12:12:12:12',
'network_id': network_ref['id'],