Merge "Metastatic: Copy cloud attribute from backing node"

This commit is contained in:
Zuul 2024-03-05 16:51:00 +00:00 committed by Gerrit Code Review
commit eef07d21f3
2 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,7 @@ class MetastaticInstance(statemachine.Instance):
self.private_ipv4 = backing_node.private_ipv4
self.az = backing_node.az
self.region = backing_node.region
self.cloud = backing_node.cloud
# Image overrides:
self.username = backing_node.username
self.python_path = backing_node.python_path

View File

@ -108,6 +108,7 @@ class TestDriverMetastatic(tests.DBTestCase):
self.assertEqual(bn1.python_path, node1.python_path)
self.assertEqual('auto', node1.python_path)
self.assertEqual(bn1.shell_type, node1.shell_type)
self.assertEqual(bn1.cloud, node1.cloud)
self.assertEqual(None, node1.shell_type)
self.assertEqual(bn1.host_keys, node1.host_keys)
self.assertEqual(['ssh-rsa FAKEKEY'], node1.host_keys)