From c91df36ebe32cfb23c539e3608df42fdc1ef6086 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Tue, 12 Jan 2016 11:24:43 -0500 Subject: [PATCH] added module name to missing interpreter error fixes #13816 --- lib/ansible/plugins/action/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/__init__.py b/lib/ansible/plugins/action/__init__.py index 6c65716bbf..c1fcfe670b 100644 --- a/lib/ansible/plugins/action/__init__.py +++ b/lib/ansible/plugins/action/__init__.py @@ -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