community.general/lib/ansible
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
..
cli Fix 'New Vault password' on vault 'edit' (#35923) 2018-03-27 14:12:21 -04:00
compat Enable wildcard import pylint (#35786) 2018-02-06 15:17:49 -08:00
config adds fix for terminal plugins 2018-03-05 08:54:40 -05:00
errors Make AnsibleActionDone a private exception 2018-01-22 23:36:34 -08:00
executor module_common: handle None value for templar (#36651) 2018-03-29 13:54:48 -04:00
galaxy Ansible Galaxy: skel for network role #37241 (#37251) 2018-03-09 13:31:27 -05:00
inventory Except in specific cases, we want to use text strings on the controller 2018-03-26 16:54:39 -07:00
module_utils changes default WAPI version to 2.1 (#37578) 2018-03-28 18:27:17 +01:00
modules dedupe the --rsh options in favor of user supplied (#38096) 2018-03-29 09:32:27 -05:00
parsing Fix 'New Vault password' on vault 'edit' (#35923) 2018-03-27 14:12:21 -04:00
playbook Don't overwrite builtin jinja2 filters with tests (#37881) 2018-03-26 12:06:00 -05:00
plugins module_common: handle None value for templar (#36651) 2018-03-29 13:54:48 -04:00
template Don't overwrite builtin jinja2 filters with tests (#37881) 2018-03-26 12:06:00 -05:00
utils Document the relationship between octal numbers and the leading zero 2018-03-26 16:25:06 -07:00
vars Fix ansible_lo being used inside of ansible_facts 2018-03-13 12:05:14 -04:00
__init__.py
constants.py Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
release.py Fix version in lib/ansible/release.py 2018-02-09 04:47:31 -08:00