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): def run(self, tmp=None, task_vars=None):
""" Load yml files recursively from a directory. """ 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: if not task_vars:
task_vars = dict() task_vars = dict()