1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

added module name to missing interpreter error

fixes #13816
This commit is contained in:
Brian Coca 2016-01-12 11:24:43 -05:00
parent f56c15e7e2
commit c91df36ebe

View file

@ -386,7 +386,7 @@ class ActionBase(with_metaclass(ABCMeta, object)):
(module_style, shebang, module_data) = self._configure_module(module_name=module_name, module_args=module_args, task_vars=task_vars)
if not shebang:
raise AnsibleError("module is missing interpreter line")
raise AnsibleError("module (%s) is missing interpreter line" % module_name)
# a remote tmp path may be necessary and not already created
remote_module_path = None