Merge "Metastatic: Copy cloud attribute from backing node"
This commit is contained in:
commit
eef07d21f3
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user