diff --git a/alts/worker/executors/base.py b/alts/worker/executors/base.py index 139e773f..e982ff35 100644 --- a/alts/worker/executors/base.py +++ b/alts/worker/executors/base.py @@ -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 '