From 74e264a6a51dc3007df74ae8704b82f0b393e788 Mon Sep 17 00:00:00 2001 From: Vismay Golwala Date: Mon, 1 Apr 2019 11:53:34 -0400 Subject: [PATCH] Add scm_branch while preloading data Currently, the SCM url for default project is not able to fetch playbooks as branch is not specified. So, adding the scm_branch value resolves this issue. Signed-off-by: Vismay Golwala --- awx/main/management/commands/create_preload_data.py | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/main/management/commands/create_preload_data.py b/awx/main/management/commands/create_preload_data.py index 1bf9f5c30b..a5c15c7e2e 100644 --- a/awx/main/management/commands/create_preload_data.py +++ b/awx/main/management/commands/create_preload_data.py @@ -30,6 +30,7 @@ class Command(BaseCommand): p = Project(name='Demo Project', scm_type='git', scm_url='https://github.com/ansible/ansible-tower-samples', + scm_branch='master', scm_update_on_launch=True, scm_update_cache_timeout=0, organization=o)