mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Merge pull request #359 from AlanCoding/fail_ans_inv
set flag to fail imports on errors
This commit is contained in:
@@ -83,6 +83,7 @@ class AnsibleInventoryLoader(object):
|
|||||||
env = dict(os.environ.items())
|
env = dict(os.environ.items())
|
||||||
env['VIRTUAL_ENV'] = settings.ANSIBLE_VENV_PATH
|
env['VIRTUAL_ENV'] = settings.ANSIBLE_VENV_PATH
|
||||||
env['PATH'] = os.path.join(settings.ANSIBLE_VENV_PATH, "bin") + ":" + env['PATH']
|
env['PATH'] = os.path.join(settings.ANSIBLE_VENV_PATH, "bin") + ":" + env['PATH']
|
||||||
|
env['ANSIBLE_INVENTORY_UNPARSED_FAILED'] = '1'
|
||||||
venv_libdir = os.path.join(settings.ANSIBLE_VENV_PATH, "lib")
|
venv_libdir = os.path.join(settings.ANSIBLE_VENV_PATH, "lib")
|
||||||
env.pop('PYTHONPATH', None) # default to none if no python_ver matches
|
env.pop('PYTHONPATH', None) # default to none if no python_ver matches
|
||||||
for python_ver in ["python2.7", "python2.6"]:
|
for python_ver in ["python2.7", "python2.6"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user