mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 00:08:44 -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:
|
if project_path:
|
||||||
for dirpath, dirnames, filenames in os.walk(project_path):
|
for dirpath, dirnames, filenames in os.walk(project_path):
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
if os.path.splitext(filename)[-1] != '.yml':
|
if os.path.splitext(filename)[-1] not in ['.yml', '.yaml']:
|
||||||
continue
|
continue
|
||||||
playbook = os.path.join(dirpath, filename)
|
playbook = os.path.join(dirpath, filename)
|
||||||
# Filter files that do not have either hosts or top-level
|
# Filter files that do not have either hosts or top-level
|
||||||
|
|||||||
Reference in New Issue
Block a user