Skip to content

Commit

Permalink
Fix checking binary existence
Browse files Browse the repository at this point in the history
  • Loading branch information
Korulag committed Jan 25, 2024
1 parent 7c492f9 commit 98715aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions alts/worker/executors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ def check_binary_existence(self):
except Exception as exc:
self.logger.exception('Cannot check binary existence:')
raise exc
# Special case: 'ip' command returns 255 status when asking for help
if ((self.binary_name == 'ip' or self.binary_name.endswith('/ip'))
and result.exit_code == 255):
return
if not result.is_successful():
raise FileNotFoundError(
f'Binary "{self.binary_name}" is not found '
Expand Down

0 comments on commit 98715aa

Please sign in to comment.