Skip to content

Commit 8932282

Browse files
committed
evacuate: Fix password parameter name for SDK
The parameter is called admin_password on the SDK side. Change-Id: I0cd86675a884e6c2cbd3a861b8e111f961f0f336
1 parent ffa683a commit 8932282

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

openstackclient/compute/v2/server.py

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

38413841
kwargs = {
38423842
'host': parsed_args.host,
3843-
'password': parsed_args.password,
3843+
'admin_password': parsed_args.password,
38443844
}
38453845

38463846
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
@@ -6974,7 +6974,7 @@ def test_evacuate(self):
69746974
evac_args = {
69756975
'host': None,
69766976
'on_shared_storage': False,
6977-
'password': None,
6977+
'admin_password': None,
69786978
}
69796979
self._test_evacuate(args, verify_args, evac_args)
69806980

@@ -6991,7 +6991,7 @@ def test_evacuate_with_password(self):
69916991
evac_args = {
69926992
'host': None,
69936993
'on_shared_storage': False,
6994-
'password': 'password',
6994+
'admin_password': 'password',
69956995
}
69966996
self._test_evacuate(args, verify_args, evac_args)
69976997

@@ -7008,7 +7008,7 @@ def test_evacuate_with_host(self):
70087008
('server', self.server.id),
70097009
('host', 'target-host'),
70107010
]
7011-
evac_args = {'host': host, 'password': None}
7011+
evac_args = {'host': host, 'admin_password': None}
70127012

70137013
self._test_evacuate(args, verify_args, evac_args)
70147014

@@ -7041,7 +7041,7 @@ def test_evacuate_without_share_storage(self):
70417041
evac_args = {
70427042
'host': None,
70437043
'on_shared_storage': True,
7044-
'password': None,
7044+
'admin_password': None,
70457045
}
70467046
self._test_evacuate(args, verify_args, evac_args)
70477047

@@ -7072,7 +7072,7 @@ def test_evacuate_with_wait_ok(self, mock_wait_for_status):
70727072
evac_args = {
70737073
'host': None,
70747074
'on_shared_storage': False,
7075-
'password': None,
7075+
'admin_password': None,
70767076
}
70777077
self._test_evacuate(args, verify_args, evac_args)
70787078
mock_wait_for_status.assert_called_once_with(

0 commit comments

Comments
 (0)