Browse Source

Merge "Start using nova_metadata_host"

Zuul 1 year ago
parent
commit
98ef3ba8ba

+ 1
- 1
networking_hyperv/neutron/agent/hnv_metadata_agent.py View File

@@ -194,7 +194,7 @@ class MetadataProxy(base_agent.BaseAgent):
194 194
 
195 195
     def _get_agent_configurations(self):
196 196
         return {
197
-            'nova_metadata_ip': CONF.nova_metadata_host,
197
+            'nova_metadata_host': CONF.nova_metadata_host,
198 198
             'nova_metadata_port': CONF.nova_metadata_port,
199 199
             'log_agent_heartbeats': CONF.AGENT.log_agent_heartbeats,
200 200
         }

+ 1
- 1
networking_hyperv/tests/unit/neutron/agent/test_hnv_metadata_agent.py View File

@@ -236,7 +236,7 @@ class TestMetadataProxy(test_base.HyperVBaseTestCase):
236 236
 
237 237
         configuration = self._agent._get_agent_configurations()
238 238
 
239
-        self.assertEqual(fake_ip, configuration["nova_metadata_ip"])
239
+        self.assertEqual(fake_ip, configuration["nova_metadata_host"])
240 240
         self.assertEqual(fake_port, configuration["nova_metadata_port"])
241 241
         self.assertEqual(CONF.AGENT.log_agent_heartbeats,
242 242
                          configuration["log_agent_heartbeats"])

Loading…
Cancel
Save