From 4eb323caa4e39e75296197b10964ca92b788d2b6 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Fri, 20 Dec 2013 07:12:03 -0500 Subject: [PATCH] Apply patch from jlaska. Adds support for .yaml file extensions on playbooks. Implements AC-890 --- awx/main/models/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/projects.py b/awx/main/models/projects.py index 691fa8b825..d474dc3fe3 100644 --- a/awx/main/models/projects.py +++ b/awx/main/models/projects.py @@ -306,7 +306,7 @@ class Project(CommonModel): if project_path: for dirpath, dirnames, filenames in os.walk(project_path): for filename in filenames: - if os.path.splitext(filename)[-1] != '.yml': + if os.path.splitext(filename)[-1] not in ['.yml', '.yaml']: continue playbook = os.path.join(dirpath, filename) # Filter files that do not have either hosts or top-level