mirror of
https://github.com/ansible/awx.git
synced 2026-02-27 07:56:06 -03:30
log details for unhandled bwrap case
This commit is contained in:
@@ -783,7 +783,9 @@ def check_proot_installed():
|
|||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE)
|
||||||
proc.communicate()
|
proc.communicate()
|
||||||
return bool(proc.returncode == 0)
|
return bool(proc.returncode == 0)
|
||||||
except (OSError, ValueError):
|
except (OSError, ValueError) as e:
|
||||||
|
if isinstance(e, ValueError) or getattr(e, 'errno', 1) != 2: # ENOENT, no such file or directory
|
||||||
|
logger.exception('bwrap unavailable for unexpected reason.')
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user