fix(extra77): Deleted resource id from exception results (#1409)

This commit is contained in:
Nacho Rivera
2022-10-17 13:17:51 +02:00
committed by GitHub
parent 11dc0aa5b2
commit 2997ff0f1c
+3 -3
View File
@@ -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
}