From 9d9187583276f31f913f5e9d083feb35a231163f Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Tue, 29 Aug 2017 09:59:36 -0400 Subject: [PATCH] set flag to fail imports on errors --- awx/main/management/commands/inventory_import.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/management/commands/inventory_import.py b/awx/main/management/commands/inventory_import.py index 1de39baccb..aa64822bfe 100644 --- a/awx/main/management/commands/inventory_import.py +++ b/awx/main/management/commands/inventory_import.py @@ -83,6 +83,7 @@ class AnsibleInventoryLoader(object): env = dict(os.environ.items()) env['VIRTUAL_ENV'] = settings.ANSIBLE_VENV_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") env.pop('PYTHONPATH', None) # default to none if no python_ver matches for python_ver in ["python2.7", "python2.6"]: