mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Fix error handling for SubscriptionRequiredException in extra77
This commit is contained in:
@@ -28,6 +28,10 @@ extra77(){
|
||||
textFail "Access Denied Trying to describe ECR repositories"
|
||||
continue
|
||||
fi
|
||||
if [[ $(echo "$LIST_ECR_REPOS" | grep SubscriptionRequiredException) ]]; then
|
||||
textFail "Subscription Required Exception trying to describe ECR repositories"
|
||||
continue
|
||||
fi
|
||||
if [[ ! -z "$LIST_ECR_REPOS" ]]; then
|
||||
for repo in $LIST_ECR_REPOS; do
|
||||
TEMP_POLICY_FILE=$(mktemp -t prowler-${ACCOUNT_NUM}-ecr-repo.policy.XXXXXXXXXX)
|
||||
|
||||
Reference in New Issue
Block a user