mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 10:10:01 -03:30
Apply patch from jlaska. Adds support for .yaml file extensions on playbooks. Implements AC-890
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user