Skip to content

Commit 58d1b06

Browse files
committed
evacuate SDK actually uses admin_pass param
Change I0cd86675a884e6c2cbd3a861b8e111f961f0f336 was incorrect, the SDK param name is admin_pass. Change-Id: Ibe22c3d7d7ba0f1a5178475143e35fee5cac2ca2
1 parent b92291f commit 58d1b06

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
@@ -3872,7 +3872,7 @@ def _show_progress(progress):
38723872

38733873
kwargs = {
38743874
'host': parsed_args.host,
3875-
'admin_password': parsed_args.password,
3875+
'admin_pass': parsed_args.password,
38763876
}
38773877

38783878
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-
'admin_password': None,
6985+
'admin_pass': 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-
'admin_password': 'password',
7002+
'admin_pass': '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, 'admin_password': None}
7019+
evac_args = {'host': host, 'admin_pass': 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-
'admin_password': None,
7052+
'admin_pass': 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-
'admin_password': None,
7083+
'admin_pass': 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)