From ddf937d642729b429e2e001b96dc27875429904b Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 3 Apr 2018 09:59:13 -0500 Subject: [PATCH] Don't pass keyword args as positional, include file_name. Fixes #38190 (#38194) --- lib/ansible/plugins/action/include_vars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/include_vars.py b/lib/ansible/plugins/action/include_vars.py index 7ef24e9b3a6..8897f87af11 100644 --- a/lib/ansible/plugins/action/include_vars.py +++ b/lib/ansible/plugins/action/include_vars.py @@ -236,7 +236,7 @@ class ActionModule(ActionBase): data = to_text(b_data, errors='surrogate_or_strict') self.show_content = show_content - data = self._loader.load(data, show_content) + data = self._loader.load(data, file_name=filename, show_content=show_content) if not data: data = dict() if not isinstance(data, dict):