From 1e4839f5e161ed73e5dc3cc8cc3cb31bad12f799 Mon Sep 17 00:00:00 2001 From: Tim McCormack Date: Tue, 25 Jun 2024 19:52:06 +0000 Subject: [PATCH] fix: Handle case where alternate NR license key var not set Fixes bug in https://github.com/edx/configuration/pull/48 --- playbooks/roles/edxapp/templates/edx/app/edxapp/lms.sh.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/edxapp/templates/edx/app/edxapp/lms.sh.j2 b/playbooks/roles/edxapp/templates/edx/app/edxapp/lms.sh.j2 index 42c86b8c2b4..4f00f01ac4c 100644 --- a/playbooks/roles/edxapp/templates/edx/app/edxapp/lms.sh.j2 +++ b/playbooks/roles/edxapp/templates/edx/app/edxapp/lms.sh.j2 @@ -24,7 +24,7 @@ fi # (Maybe this will keep NR trace instrumentation in place, but not cost us anything, # because this free-tier NR account will throw away most data.) # See https://github.com/edx/edx-arch-experiments/issues/692 -export NEW_RELIC_LICENSE_KEY="{{ EDXAPP_NEWRELIC_LICENSE_TEST_FREE }}" +export NEW_RELIC_LICENSE_KEY="{{ EDXAPP_NEWRELIC_LICENSE_TEST_FREE | default('') }}" {% else %} export NEW_RELIC_LICENSE_KEY="{{ NEWRELIC_LICENSE_KEY }}" {% endif %}