Merge "Cleanup playbook execution"

This commit is contained in:
Zuul 2020-03-06 22:02:07 +00:00 committed by Gerrit Code Review
commit 176fdb52cb
1 changed files with 1 additions and 4 deletions

View File

@ -89,17 +89,14 @@ def _check_diskspace(upgrade=False):
playbook_args = constants.DEPLOY_ANSIBLE_ACTIONS['preflight-deploy']
with utils.TempDirs() as tmp:
rc, _ = utils.run_ansible_playbook(
utils.run_ansible_playbook(
workdir=tmp,
inventory='undercloud',
connection='local',
output_callback='validation_output',
playbook_dir=constants.ANSIBLE_VALIDATION_DIR,
fail_on_rc=False,
**playbook_args
)
if rc != 0:
raise RuntimeError(_("Disk space check failed"))
def _check_memory():