ansible/lib/ansible/executor
Pilou 7908f78fa6 module_common: handle None value for templar (#36651)
* module_common: set required parameter templar

Fix the following error (related to b455901):

  $ ./hacking/test-module -m ./lib/ansible/modules/system/ping.py -I ansible_python_interpreter=/usr/bin/python
  Traceback (most recent call last):
    File "./hacking/test-module", line 268, in <module>
      main()
    File "./hacking/test-module", line 249, in main
      (modfile, modname, module_style) = boilerplate_module(options.module_path, options.module_args, interpreters, options.check, options.filename)
    File "./hacking/test-module", line 152, in boilerplate_module
      task_vars=task_vars
    File "ansible/lib/ansible/executor/module_common.py", line 910, in modify_module
      environment=environment)
    File "ansible/lib/ansible/executor/module_common.py", line 736, in _find_module_utils
      shebang, interpreter = _get_shebang(u'/usr/bin/python', task_vars, templar)
    File "ansible/lib/ansible/executor/module_common.py", line 452, in _get_shebang
      interpreter = templar.template(task_vars[interpreter_config].strip())
  AttributeError: 'NoneType' object has no attribute 'template'

* module_common.modify_module: templar is required
2018-03-29 13:54:48 -04:00
..
process include_role handlers bug fix (#26335) 2017-07-19 15:02:32 -05:00
__init__.py ansible/executor: PEP8 compliancy (#24695) 2017-05-30 18:13:53 +01:00
action_write_locks.py Facts Refresh (2.4 roadmap) (#23012) 2017-06-01 11:17:49 -04:00
module_common.py module_common: handle None value for templar (#36651) 2018-03-29 13:54:48 -04:00
play_iterator.py Cache tasks as they are queued instead of en masse (#34752) 2018-01-15 09:49:58 -06:00
playbook_executor.py Allow variables to be used in vars_prompt (#32802) 2018-01-05 13:24:20 -06:00
stats.py Provide a way to explicitly invoke the debugger (#34006) 2018-01-09 13:50:07 -06:00
task_executor.py Put back $PATH checking in ansible-connection call (#37933) 2018-03-26 12:49:30 -04:00
task_queue_manager.py Config continued (#31024) 2017-11-16 13:49:57 -05:00
task_result.py hide uneeded fields for callbacks (#36259) 2018-02-20 08:41:18 -05:00