community.general/lib/ansible/plugins
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
..
action module_common: handle None value for templar (#36651) 2018-03-29 13:54:48 -04:00
cache add inventory caching & use in virtualbox inventory plugin (#34510) 2018-01-22 19:33:14 -05:00
callback Restore skipped/failed in JSON callback, add custom facts (#37204) 2018-03-20 10:32:33 -04:00
cliconf show version brief does not work on iosxr virtual (#37609) 2018-03-29 12:33:41 +05:30
connection Put back $PATH checking in ansible-connection call (#37933) 2018-03-26 12:49:30 -04:00
filter Revert accidental addition of Mapping in #37741 (#37939) 2018-03-26 13:57:56 -05:00
inventory Typos in the yaml inventory plugin 2018-03-23 18:01:40 -04:00
lookup flattened: doc: Typo in lookup example (#38006) 2018-03-28 08:25:40 +02:00
netconf Raise error when trying to use older iosxr modules with netconf (#37423) 2018-03-15 12:49:35 -04:00
shell win: handle non string as an environment value (#37215) 2018-03-09 08:02:54 +10:00
strategy Re-use logic from StrategyBase._load_included_file in StrategyModule.run for free and linear (#36470) 2018-02-21 09:53:15 -06:00
terminal Lenovo license update (#36840) 2018-03-06 18:02:46 +00:00
test Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
vars Scan group_vars/host_vars in sorted order 2017-11-20 21:57:42 -05:00
__init__.py fixed up get_options in AnsiblePlugin to use the correct plugin name 2017-11-22 15:35:31 -05:00
loader.py We need to save the basename into an attribute for calling code 2018-03-26 16:15:05 -07:00