From 5de2bf7a838ea76f722394e78e4a0c5582f14fec Mon Sep 17 00:00:00 2001 From: Sergio Garcia <38561120+sergargar@users.noreply.github.com> Date: Thu, 31 Mar 2022 14:40:32 +0200 Subject: [PATCH] fix(extra7172): IllegalLocationConstraintException properly handled. (#1093) --- checks/check_extra7172 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/checks/check_extra7172 b/checks/check_extra7172 index fb4f4451..d8cd8a4e 100644 --- a/checks/check_extra7172 +++ b/checks/check_extra7172 @@ -36,6 +36,9 @@ extra7172(){ if [[ $(echo "$BUCKET_ACLS_DISABLED" | grep -E 'AccessDenied|UnauthorizedOperation|AuthorizationError') ]]; then textInfo "$REGION: Access Denied Trying to Get Bucket Ownership Controls for $bucket" "$REGION" "$bucket" continue + elif [[ $(echo "$BUCKET_ACLS_DISABLED" | grep -E 'IllegalLocationConstraintException') ]]; then + textInfo "$REGION: Location Constraint Trying to Get Bucket Ownership Controls for $bucket" "$REGION" "$bucket" + continue fi if [[ $(echo "$BUCKET_ACLS_DISABLED" | grep "BucketOwnerEnforced") ]]; then textPass "$REGION: Bucket $bucket has bucket ACLs disabled!" "$REGION" "$bucket" @@ -44,7 +47,7 @@ extra7172(){ elif [[ $(echo "$BUCKET_ACLS_DISABLED" | grep "OwnershipControlsNotFoundError") ]]; then textFail "$REGION: Bucket $bucket has bucket ACLs enabled!" "$REGION" "$bucket" else - textFail "$REGION: Bucket $bucket returned an unknown error" $BUCKET_ACLS_DISABLED + textFail "$REGION: Bucket $bucket returned an unknown error" "$REGION" "$bucket" fi done else