evacuate: Fix password parameter name for SDK
The parameter is called admin_password on the SDK side. Change-Id: I0cd86675a884e6c2cbd3a861b8e111f961f0f336 (cherry picked from commit 8932282952f85320f364d2bdc5efd0d213019299)
This commit is contained in:
parent
f74c88560b
commit
fb958fa5d0
@ -3840,7 +3840,7 @@ host."""
|
||||
|
||||
kwargs = {
|
||||
'host': parsed_args.host,
|
||||
'password': parsed_args.password,
|
||||
'admin_password': parsed_args.password,
|
||||
}
|
||||
|
||||
if not sdk_utils.supports_microversion(compute_client, '2.14'):
|
||||
|
@ -6974,7 +6974,7 @@ class TestServerEvacuate(TestServer):
|
||||
evac_args = {
|
||||
'host': None,
|
||||
'on_shared_storage': False,
|
||||
'password': None,
|
||||
'admin_password': None,
|
||||
}
|
||||
self._test_evacuate(args, verify_args, evac_args)
|
||||
|
||||
@ -6991,7 +6991,7 @@ class TestServerEvacuate(TestServer):
|
||||
evac_args = {
|
||||
'host': None,
|
||||
'on_shared_storage': False,
|
||||
'password': 'password',
|
||||
'admin_password': 'password',
|
||||
}
|
||||
self._test_evacuate(args, verify_args, evac_args)
|
||||
|
||||
@ -7008,7 +7008,7 @@ class TestServerEvacuate(TestServer):
|
||||
('server', self.server.id),
|
||||
('host', 'target-host'),
|
||||
]
|
||||
evac_args = {'host': host, 'password': None}
|
||||
evac_args = {'host': host, 'admin_password': None}
|
||||
|
||||
self._test_evacuate(args, verify_args, evac_args)
|
||||
|
||||
@ -7041,7 +7041,7 @@ class TestServerEvacuate(TestServer):
|
||||
evac_args = {
|
||||
'host': None,
|
||||
'on_shared_storage': True,
|
||||
'password': None,
|
||||
'admin_password': None,
|
||||
}
|
||||
self._test_evacuate(args, verify_args, evac_args)
|
||||
|
||||
@ -7072,7 +7072,7 @@ class TestServerEvacuate(TestServer):
|
||||
evac_args = {
|
||||
'host': None,
|
||||
'on_shared_storage': False,
|
||||
'password': None,
|
||||
'admin_password': 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