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"
pull/17552/head
Abhijit Menon-Sen 8 years ago
parent b0d81a43d7
commit 07756a4265

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

Loading…
Cancel
Save