ansible/test/units/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
..
module_common module_common: handle None value for templar (#36651) 2018-03-29 13:54:48 -04:00
__init__.py
test_play_iterator.py Cache tasks as they are queued instead of en masse (#34752) 2018-01-15 09:49:58 -06:00
test_playbook_executor.py test/: PEP8 compliancy (#24803) 2017-05-30 18:05:19 +01:00
test_task_executor.py Recursively remove args with omit as as their value, to match suboptions in argument_spec (#35299) 2018-01-26 11:07:04 -06:00
test_task_queue_manager_callbacks.py
test_task_result.py Add test for clean_copy preservation of keys 2017-12-12 13:51:06 -05:00