Skip to content

Commit

Permalink
Don't pass keyword args as positional, include file_name. Fixes #38190 (
Browse files Browse the repository at this point in the history
  • Loading branch information
sivel committed Apr 3, 2018
1 parent f666208 commit ddf937d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/include_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def _load_files(self, filename, validate_extensions=False):
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):
Expand Down

0 comments on commit ddf937d

Please sign in to comment.