diff --git a/openstackclient/compute/v2/server.py b/openstackclient/compute/v2/server.py index 03bd0f8f30..d505c539a9 100644 --- a/openstackclient/compute/v2/server.py +++ b/openstackclient/compute/v2/server.py @@ -3837,7 +3837,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'): diff --git a/openstackclient/tests/unit/compute/v2/test_server.py b/openstackclient/tests/unit/compute/v2/test_server.py index eca1e61192..937bbfe07b 100644 --- a/openstackclient/tests/unit/compute/v2/test_server.py +++ b/openstackclient/tests/unit/compute/v2/test_server.py @@ -6982,7 +6982,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) @@ -6999,7 +6999,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) @@ -7016,7 +7016,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) @@ -7049,7 +7049,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) @@ -7080,7 +7080,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(