From 82b83a4b7bc75ee6fc7ac8838b7c86e1ef310b03 Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Fri, 17 Sep 2021 10:57:20 +0200 Subject: [PATCH] Fix relative path for ALLOW_ASYNC_UNSAFE [noissue] --- .../github/.github/workflows/scripts/before_install.sh.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/github/.github/workflows/scripts/before_install.sh.j2 b/templates/github/.github/workflows/scripts/before_install.sh.j2 index 0cd48e64..99bea9cb 100755 --- a/templates/github/.github/workflows/scripts/before_install.sh.j2 +++ b/templates/github/.github/workflows/scripts/before_install.sh.j2 @@ -167,12 +167,12 @@ then fi sed -i -e 's/DEBUG = False/DEBUG = True/' pulpcore/pulpcore/app/settings.py - -{% if not tasking_allow_async_unsafe -%} +{%- if not tasking_allow_async_unsafe %} # Patch DJANGO_ALLOW_ASYNC_UNSAFE out of the pulpcore tasking_system # Don't let it fail. Be opportunistic. -sed -i -e '/DJANGO_ALLOW_ASYNC_UNSAFE/d' ../pulpcore/pulpcore/tasking/entrypoint.py || true -{% endif -%} +sed -i -e '/DJANGO_ALLOW_ASYNC_UNSAFE/d' pulpcore/pulpcore/tasking/entrypoint.py || true +{%- endif %} + cd {{ plugin_name }} if [ -f $POST_BEFORE_INSTALL ]; then