From adee02ab511fb47ac31dc7d8e94d6cb7f8d1e449 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Thu, 14 Jun 2018 10:52:02 -0400 Subject: [PATCH] log details for unhandled bwrap case --- awx/main/utils/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/awx/main/utils/common.py b/awx/main/utils/common.py index ac1f30d25e..9cb134ff95 100644 --- a/awx/main/utils/common.py +++ b/awx/main/utils/common.py @@ -783,7 +783,9 @@ def check_proot_installed(): stderr=subprocess.PIPE) proc.communicate() 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