Skip to content

Commit 1535a22

Browse files
authored
Merge pull request #108 from AlmaLinux/fix_allow_fail_flag
Fix honoring 'allow_install_fail' flag
2 parents 7cb7683 + 6a51ab2 commit 1535a22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

alts/worker/runners/base.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,9 @@ def install_package_no_log(
889889
'Package was not installed due to command timeout: %s',
890890
f'{out}\n{err}'
891891
)
892-
elif exit_code != 0:
892+
if allow_fail and exit_code != 0:
893+
exit_code = 0
894+
if exit_code != 0:
893895
self._logger.error('Cannot install package %s: %s', full_pkg_name, err)
894896
return exit_code, out, err
895897

0 commit comments

Comments
 (0)