From ccfdc7393bdb2e94745910530d7d3099fdfa19bd Mon Sep 17 00:00:00 2001 From: Johnny Bieren Date: Tue, 6 Feb 2024 11:57:18 -0500 Subject: [PATCH] fix(RHTAPREL-816): don't fail translate-delivery-repo Some tests call the translation even when they aren't using a quay.io/redhat-[prod,pending] repo. As the old behavior did not fail in these cases, this commit changes translate-delivery-repo to also not fail in these scenarios. Signed-off-by: Johnny Bieren --- utils/translate-delivery-repo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/translate-delivery-repo b/utils/translate-delivery-repo index 939f427..559e1de 100755 --- a/utils/translate-delivery-repo +++ b/utils/translate-delivery-repo @@ -14,13 +14,13 @@ REPO=$1 if [ -z "${REPO}" ]; then echo -e "Please pass a repo to translate like 'quay.io/redhat-prod/product----repo'" - exit + exit 1 fi if [[ "${REPO}" != "quay.io/redhat-prod"* && "${REPO}" != "quay.io/redhat-pending"* ]] || [[ "${REPO}" != *"----"* ]] ; then - echo Malformatted repo to translate. Expected format is quay.io/redhat-[prod,pending]/product----repo - exit 1 + echo -n "Warning: Repo to translate is not in expected format. Expected format is " >&2 + echo "quay.io/redhat-[prod,pending]/product----repo" >&2 fi REPO=${REPO/quay.io\/redhat-prod/registry.redhat.io}