Skip to content

Commit

Permalink
Remove extraneous . from VALID_FILE_EXTENSIONS
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
amenonsen committed Sep 13, 2016
1 parent b0d81a4 commit 07756a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/plugins/action/include_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _set_args(self):
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()

Expand Down

0 comments on commit 07756a4

Please sign in to comment.