Merge "Remove redundant priority override code from service steps"

This commit is contained in:
Zuul 2024-04-18 21:59:40 +00:00 committed by Gerrit Code Review
commit 11309e7aea
2 changed files with 2 additions and 11 deletions

View File

@ -854,14 +854,7 @@ class AgentBaseMixin(object):
:returns: A list of service step dictionaries, if an error
occurs, then an empty list is returned.
"""
new_priorities = {
'erase_devices': CONF.deploy.erase_devices_priority,
'erase_devices_metadata':
CONF.deploy.erase_devices_metadata_priority,
}
return get_steps(
task, 'service',
override_priorities=new_priorities)
return get_steps(task, 'service')
@METRICS.timer('AgentBaseMixin.refresh_steps')
def refresh_steps(self, task, step_type):

View File

@ -1114,9 +1114,7 @@ class TestAgentDeploy(CommonTestsMixin, db_base.DbTestCase):
with task_manager.acquire(self.context, self.node.uuid) as task:
steps = self.driver.get_service_steps(task)
mock_get_steps.assert_called_once_with(
task, 'service',
override_priorities={'erase_devices': None,
'erase_devices_metadata': None})
task, 'service')
self.assertEqual(mock_steps, steps)
@mock.patch.object(agent_base, 'get_steps', autospec=True)