From 8a325d40e45e022f4b4241b78e5f48e8b91c0145 Mon Sep 17 00:00:00 2001 From: odroid Date: Mon, 26 Oct 2020 15:22:29 -0400 Subject: [PATCH] `create_preload_data | bool` in launch_awx_task.sh.j2 --- installer/roles/image_build/templates/launch_awx_task.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/roles/image_build/templates/launch_awx_task.sh.j2 b/installer/roles/image_build/templates/launch_awx_task.sh.j2 index 17655c6699..7ff8e56cf2 100755 --- a/installer/roles/image_build/templates/launch_awx_task.sh.j2 +++ b/installer/roles/image_build/templates/launch_awx_task.sh.j2 @@ -24,7 +24,7 @@ fi if [ ! -z "$AWX_ADMIN_USER" ]&&[ ! -z "$AWX_ADMIN_PASSWORD" ]; then echo "from django.contrib.auth.models import User; User.objects.create_superuser('$AWX_ADMIN_USER', 'root@localhost', '$AWX_ADMIN_PASSWORD')" | awx-manage shell - {% if create_preload_data %} + {% if create_preload_data | bool %} awx-manage create_preload_data {% endif %} fi