mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Remove extraneous . from VALID_FILE_EXTENSIONS
Otherwise if you «include_vars: vars.json», you get this error: "message": "/path/to/vars.json does not have a valid extension: yaml, yml, .json"
This commit is contained in:
parent
b0d81a43d7
commit
07756a4265
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class ActionModule(ActionBase):
|
|||
def run(self, tmp=None, task_vars=None):
|
||||
""" Load yml files recursively from a directory.
|
||||
"""
|
||||
self.VALID_FILE_EXTENSIONS = ['yaml', 'yml', '.json']
|
||||
self.VALID_FILE_EXTENSIONS = ['yaml', 'yml', 'json']
|
||||
if not task_vars:
|
||||
task_vars = dict()
|
||||
|
||||
|
|
Loading…
Reference in a new issue