From 07756a4265484945ea1fa1891ba0dba7a6359f3d Mon Sep 17 00:00:00 2001 From: Abhijit Menon-Sen Date: Tue, 13 Sep 2016 19:39:31 +0530 Subject: [PATCH] Remove extraneous . from VALID_FILE_EXTENSIONS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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" --- lib/ansible/plugins/action/include_vars.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/action/include_vars.py b/lib/ansible/plugins/action/include_vars.py index 97c9a8c68dc..8749af43f5d 100644 --- a/lib/ansible/plugins/action/include_vars.py +++ b/lib/ansible/plugins/action/include_vars.py @@ -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()