Change validations log_path parameter

The "log_path" parameter is throwing a deprecation warning because it is
being removed from the run_validations method. To resolve this
deprecation warning the log_path parameter is being moved to the
ValidationActions init.

Change-Id: If99c37c661ddb682f71acb277fea9a687db5ad41
Signed-off-by: Kevin Carter <kecarter@redhat.com>
This commit is contained in:
Kevin Carter 2022-03-23 08:05:14 -05:00 committed by Cedric Jeanneret
parent a0dd1801e1
commit c48d0fce67
1 changed files with 1 additions and 2 deletions

View File

@ -92,10 +92,9 @@ def _run_validations(upgrade=False):
playbook_args = constants.DEPLOY_ANSIBLE_ACTIONS['preflight-deploy']
with utils.TempDirs() as tmp:
actions = ValidationActions()
actions = ValidationActions(log_path=tmp)
actions.run_validations(
inventory='undercloud',
log_path=tmp,
validations_dir=constants.ANSIBLE_VALIDATION_DIR,
validation_name=playbook_args['playbooks'])