Don't pass keyword args as positional, include file_name. Fixes #38190 (#38194)

This commit is contained in:
Matt Martz 2018-04-03 09:59:13 -05:00 committed by GitHub
parent f666208b75
commit ddf937d642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):