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:
parent
a0dd1801e1
commit
c48d0fce67
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Reference in New Issue