summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authorDan Smith <danms@us.ibm.com>2013-02-12 16:00:55 -0500
committerDan Smith <danms@us.ibm.com>2013-02-12 19:46:48 -0500
commita2e4c2c0a4758e1ecf26ca0e6e37e18c65ad2d61 (patch)
treee6e900528bd633f46ee9e822d6fe31f020cbbc05 /nova
parent959e65f320093a6b17945f52ad160da5aa042ff6 (diff)
downloadnova-a2e4c2c0a4758e1ecf26ca0e6e37e18c65ad2d61.tar.gz
nova-a2e4c2c0a4758e1ecf26ca0e6e37e18c65ad2d61.tar.xz
nova-a2e4c2c0a4758e1ecf26ca0e6e37e18c65ad2d61.zip
Fix passing conductor to get_instance_nw_info()
The recent metadata patch missed this one spot, which wasn't caught because the network stubs weren't updated for the signature change. Fixes bug 1123435 Change-Id: Iebeb98bba62189476af2c0b85615ea407a8b2ecd
Diffstat (limited to 'nova')
-rw-r--r--nova/api/metadata/base.py3
-rw-r--r--nova/tests/fake_network.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/nova/api/metadata/base.py b/nova/api/metadata/base.py
index 275af2b32..fca580b29 100644
--- a/nova/api/metadata/base.py
+++ b/nova/api/metadata/base.py
@@ -139,7 +139,8 @@ class InstanceMetadata():
# get network info, and the rendered network template
ctxt = context.get_admin_context()
- network_info = network.API().get_instance_nw_info(ctxt, instance)
+ network_info = network.API().get_instance_nw_info(ctxt, instance,
+ conductor_api=capi)
self.network_config = None
cfg = netutils.get_injected_network_template(network_info)
diff --git a/nova/tests/fake_network.py b/nova/tests/fake_network.py
index 883466cd6..5de72b58d 100644
--- a/nova/tests/fake_network.py
+++ b/nova/tests/fake_network.py
@@ -372,7 +372,7 @@ def stub_out_nw_api_get_instance_nw_info(stubs, func=None,
floating_ips_per_fixed_ip=0,
spectacular=False):
- def get_instance_nw_info(self, context, instance):
+ def get_instance_nw_info(self, context, instance, conductor_api=None):
return fake_get_instance_nw_info(stubs, num_networks=num_networks,
ips_per_vif=ips_per_vif,
floating_ips_per_fixed_ip=floating_ips_per_fixed_ip,