From f29c1c7452c1b387e5719197fc8b68ac7eb4ad12 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 10 Jun 2015 23:26:01 -0400 Subject: [PATCH] respect undefined config setting --- lib/ansible/executor/playbook_executor.py | 2 +- lib/ansible/executor/task_queue_manager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/executor/playbook_executor.py b/lib/ansible/executor/playbook_executor.py index 5e339e40313..0c18ad3c893 100644 --- a/lib/ansible/executor/playbook_executor.py +++ b/lib/ansible/executor/playbook_executor.py @@ -81,7 +81,7 @@ class PlaybookExecutor: # Create a temporary copy of the play here, so we can run post_validate # on it without the templating changes affecting the original object. all_vars = self._variable_manager.get_vars(loader=self._loader, play=play) - templar = Templar(loader=self._loader, variables=all_vars, fail_on_undefined=False) + templar = Templar(loader=self._loader, variables=all_vars) new_play = play.copy() new_play.post_validate(templar) diff --git a/lib/ansible/executor/task_queue_manager.py b/lib/ansible/executor/task_queue_manager.py index b8ca4273702..debcf6873d8 100644 --- a/lib/ansible/executor/task_queue_manager.py +++ b/lib/ansible/executor/task_queue_manager.py @@ -224,7 +224,7 @@ class TaskQueueManager: play.vars[vname] = self._do_var_prompt(vname, private, prompt, encrypt, confirm, salt_size, salt, default) all_vars = self._variable_manager.get_vars(loader=self._loader, play=play) - templar = Templar(loader=self._loader, variables=all_vars, fail_on_undefined=False) + templar = Templar(loader=self._loader, variables=all_vars) new_play = play.copy() new_play.post_validate(templar)