mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 18:40:01 -03:30
Apply patch from jlaska. Adds support for .yaml file extensions on playbooks. Implements AC-890
This commit is contained in:
parent
ca35419dee
commit
4eb323caa4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user