mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 03:01:06 -03:30
Fix a bug launching a custom inventory script under proot where we would
never actually launch the job under proot
This commit is contained in:
@@ -472,7 +472,7 @@ def load_inventory_source(source, all_group=None, group_filter_re=None,
|
|||||||
if filename.endswith(".ini") or os.path.isdir(filename):
|
if filename.endswith(".ini") or os.path.isdir(filename):
|
||||||
continue
|
continue
|
||||||
load_inventory_source(filename, all_group, group_filter_re,
|
load_inventory_source(filename, all_group, group_filter_re,
|
||||||
host_filter_re)
|
host_filter_re, is_custom=is_custom)
|
||||||
else:
|
else:
|
||||||
all_group = all_group or MemGroup('all', os.path.dirname(source))
|
all_group = all_group or MemGroup('all', os.path.dirname(source))
|
||||||
if os.access(source, os.X_OK):
|
if os.access(source, os.X_OK):
|
||||||
|
|||||||
Reference in New Issue
Block a user