Skip to content

Commit f637846

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "evacuate: Fix password parameter name for SDK"
2 parents 86720f8 + 8932282 commit f637846

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

openstackclient/compute/v2/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3837,7 +3837,7 @@ def _show_progress(progress):
38373837

38383838
kwargs = {
38393839
'host': parsed_args.host,
3840-
'password': parsed_args.password,
3840+
'admin_password': parsed_args.password,
38413841
}
38423842

38433843
if not sdk_utils.supports_microversion(compute_client, '2.14'):

openstackclient/tests/unit/compute/v2/test_server.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6982,7 +6982,7 @@ def test_evacuate(self):
69826982
evac_args = {
69836983
'host': None,
69846984
'on_shared_storage': False,
6985-
'password': None,
6985+
'admin_password': None,
69866986
}
69876987
self._test_evacuate(args, verify_args, evac_args)
69886988

@@ -6999,7 +6999,7 @@ def test_evacuate_with_password(self):
69996999
evac_args = {
70007000
'host': None,
70017001
'on_shared_storage': False,
7002-
'password': 'password',
7002+
'admin_password': 'password',
70037003
}
70047004
self._test_evacuate(args, verify_args, evac_args)
70057005

@@ -7016,7 +7016,7 @@ def test_evacuate_with_host(self):
70167016
('server', self.server.id),
70177017
('host', 'target-host'),
70187018
]
7019-
evac_args = {'host': host, 'password': None}
7019+
evac_args = {'host': host, 'admin_password': None}
70207020

70217021
self._test_evacuate(args, verify_args, evac_args)
70227022

@@ -7049,7 +7049,7 @@ def test_evacuate_without_share_storage(self):
70497049
evac_args = {
70507050
'host': None,
70517051
'on_shared_storage': True,
7052-
'password': None,
7052+
'admin_password': None,
70537053
}
70547054
self._test_evacuate(args, verify_args, evac_args)
70557055

@@ -7080,7 +7080,7 @@ def test_evacuate_with_wait_ok(self, mock_wait_for_status):
70807080
evac_args = {
70817081
'host': None,
70827082
'on_shared_storage': False,
7083-
'password': None,
7083+
'admin_password': None,
70847084
}
70857085
self._test_evacuate(args, verify_args, evac_args)
70867086
mock_wait_for_status.assert_called_once_with(

0 commit comments

Comments
 (0)