mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 14:27:42 -02:30
Fail constructed inventory if ANY source is unparsed
This commit is contained in:
committed by
Rick Elrod
parent
ce4c1c11b3
commit
771b831da8
@@ -1643,8 +1643,9 @@ class constructed(PluginFileInjector):
|
|||||||
|
|
||||||
def build_env(self, *args, **kwargs):
|
def build_env(self, *args, **kwargs):
|
||||||
env = super().build_env(*args, **kwargs)
|
env = super().build_env(*args, **kwargs)
|
||||||
# Enable all types of inventory plugins so we pick up the script files from source inventories
|
# Enable script inventory plugin so we pick up the script files from source inventories
|
||||||
del env['ANSIBLE_INVENTORY_ENABLED']
|
env['ANSIBLE_INVENTORY_ENABLED'] += ',script'
|
||||||
|
env['ANSIBLE_INVENTORY_ANY_UNPARSED_IS_FAILED'] = 'True'
|
||||||
return env
|
return env
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user