From b6e052508ba316235580b701a7d0fe1f15934cd6 Mon Sep 17 00:00:00 2001 From: YuChen Shen <59578388+YCShen1010@users.noreply.github.com> Date: Fri, 15 Mar 2024 00:06:43 -0400 Subject: [PATCH] fix for when lsr is unset (#1865) Signed-off-by: YuChen --- cp3pt0-deployment/setup_singleton.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cp3pt0-deployment/setup_singleton.sh b/cp3pt0-deployment/setup_singleton.sh index 778e3f365..efff9cb61 100755 --- a/cp3pt0-deployment/setup_singleton.sh +++ b/cp3pt0-deployment/setup_singleton.sh @@ -442,6 +442,9 @@ EOF function configure_lsr_instance() { + # Initialize LSR_CR_NAME only if it's unset or null + LSR_CR_NAME="${LSR_CR_NAME:-}" + title "Configuring License Service Reporter CR in $LSR_NAMESPACE..." # checking LSR_CR_NAME if [ -z "${LSR_CR_NAME}" ]; then