1
0
Fork 0
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:
Abhijit Menon-Sen 2016-09-13 19:39:31 +05:30
parent b0d81a43d7
commit 07756a4265

View file

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