Skip to content

Commit

Permalink
Merge pull request #108 from AlmaLinux/fix_allow_fail_flag
Browse files Browse the repository at this point in the history
Fix honoring 'allow_install_fail' flag
  • Loading branch information
Korulag authored Oct 26, 2024
2 parents 7cb7683 + 6a51ab2 commit 1535a22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion alts/worker/runners/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,9 @@ def install_package_no_log(
'Package was not installed due to command timeout: %s',
f'{out}\n{err}'
)
elif exit_code != 0:
if allow_fail and exit_code != 0:
exit_code = 0
if exit_code != 0:
self._logger.error('Cannot install package %s: %s', full_pkg_name, err)
return exit_code, out, err

Expand Down

0 comments on commit 1535a22

Please sign in to comment.