From 2997ff0f1c67e94bf4d12013d291848ce4572aa2 Mon Sep 17 00:00:00 2001 From: Nacho Rivera <59198746+n4ch04@users.noreply.github.com> Date: Mon, 17 Oct 2022 13:17:51 +0200 Subject: [PATCH] fix(extra77): Deleted resource id from exception results (#1409) --- checks/check_extra77 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/checks/check_extra77 b/checks/check_extra77 index adcf2cdd93..c530547e4b 100644 --- a/checks/check_extra77 +++ b/checks/check_extra77 @@ -30,11 +30,11 @@ extra77(){ for regx in $REGIONS; do LIST_ECR_REPOS=$($AWSCLI ecr describe-repositories $PROFILE_OPT --region $regx --query "repositories[*].[repositoryName]" --output text 2>&1) if [[ $(echo "$LIST_ECR_REPOS" | grep AccessDenied) ]]; then - textInfo "$regx: Access Denied Trying to describe ECR repositories" "$regx" "$repo" + textInfo "$regx: Access Denied Trying to describe ECR repositories" "$regx" continue fi if [[ $(echo "$LIST_ECR_REPOS" | grep SubscriptionRequiredException) ]]; then - textInfo "$regx: Subscription Required Exception trying to describe ECR repositories" "$regx" "$repo" + textInfo "$regx: Subscription Required Exception trying to describe ECR repositories" "$regx" continue fi if [[ ! -z "$LIST_ECR_REPOS" ]]; then @@ -62,7 +62,7 @@ extra77(){ rm -f $TEMP_POLICY_FILE done else - textInfo "$regx: No ECR repositories found" "$regx" "$repo" + textInfo "$regx: No ECR repositories found" "$regx" fi done }