evacuate SDK actually uses admin_pass param
Change I0cd86675a884e6c2cbd3a861b8e111f961f0f336 was incorrect, the SDK param name is admin_pass. Change-Id: Ibe22c3d7d7ba0f1a5178475143e35fee5cac2ca2
This commit is contained in:
parent
b92291f0aa
commit
58d1b06fdc
@ -3872,7 +3872,7 @@ host."""
|
||||
|
||||
kwargs = {
|
||||
'host': parsed_args.host,
|
||||
'admin_password': parsed_args.password,
|
||||
'admin_pass': parsed_args.password,
|
||||
}
|
||||
|
||||
if not sdk_utils.supports_microversion(compute_client, '2.14'):
|
||||
|
@ -6982,7 +6982,7 @@ class TestServerEvacuate(TestServer):
|
||||
evac_args = {
|
||||
'host': None,
|
||||
'on_shared_storage': False,
|
||||
'admin_password': None,
|
||||
'admin_pass': None,
|
||||
}
|
||||
self._test_evacuate(args, verify_args, evac_args)
|
||||
|
||||
@ -6999,7 +6999,7 @@ class TestServerEvacuate(TestServer):
|
||||
evac_args = {
|
||||
'host': None,
|
||||
'on_shared_storage': False,
|
||||
'admin_password': 'password',
|
||||
'admin_pass': 'password',
|
||||
}
|
||||
self._test_evacuate(args, verify_args, evac_args)
|
||||
|
||||
@ -7016,7 +7016,7 @@ class TestServerEvacuate(TestServer):
|
||||
('server', self.server.id),
|
||||
('host', 'target-host'),
|
||||
]
|
||||
evac_args = {'host': host, 'admin_password': None}
|
||||
evac_args = {'host': host, 'admin_pass': None}
|
||||
|
||||
self._test_evacuate(args, verify_args, evac_args)
|
||||
|
||||
@ -7049,7 +7049,7 @@ class TestServerEvacuate(TestServer):
|
||||
evac_args = {
|
||||
'host': None,
|
||||
'on_shared_storage': True,
|
||||
'admin_password': None,
|
||||
'admin_pass': None,
|
||||
}
|
||||
self._test_evacuate(args, verify_args, evac_args)
|
||||
|
||||
@ -7080,7 +7080,7 @@ class TestServerEvacuate(TestServer):
|
||||
evac_args = {
|
||||
'host': None,
|
||||
'on_shared_storage': False,
|
||||
'admin_password': None,
|
||||
'admin_pass': None,
|
||||
}
|
||||
self._test_evacuate(args, verify_args, evac_args)
|
||||
mock_wait_for_status.assert_called_once_with(
|
||||
|
Loading…
x
Reference in New Issue
Block a user