1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

add import_playbook as top-level playbook indicator

This commit is contained in:
Seth Jennings 2018-02-19 16:03:08 -06:00
parent 90bb43ce74
commit 42ff1cfd67

View File

@ -13,7 +13,7 @@ from django.utils.encoding import smart_str
__all__ = ['skip_directory', 'could_be_playbook', 'could_be_inventory']
valid_playbook_re = re.compile(r'^\s*?-?\s*?(?:hosts|include):\s*?.*?$')
valid_playbook_re = re.compile(r'^\s*?-?\s*?(?:hosts|include|import_playbook):\s*?.*?$')
valid_inventory_re = re.compile(r'^[a-zA-Z0-9_.=\[\]]')