From 50de9f2ab4b15d80970859c9e12c4404f8573f54 Mon Sep 17 00:00:00 2001 From: Toni de la Fuente Date: Mon, 15 Nov 2021 15:49:33 +0100 Subject: [PATCH] Fix output for checks check3x when no CW group is in place --- include/check3x | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/check3x b/include/check3x index 9d8f97f2..ea29047e 100644 --- a/include/check3x +++ b/include/check3x @@ -18,7 +18,7 @@ check3x(){ # be based only on CloudTrail tail with CloudWatchLog configuration. DESCRIBE_TRAILS_CACHE=$($AWSCLI cloudtrail describe-trails $PROFILE_OPT --region "$REGION" --query 'trailList[?CloudWatchLogsLogGroupArn != `null`]' 2>&1) if [[ $(echo "$DESCRIBE_TRAILS_CACHE" | grep AccessDenied) ]]; then - textFail "$REGION: Access Denied trying to describe trails in $REGION" "$REGION" "$group" + textFail "$REGION: Access Denied trying to describe trails in $REGION" "$REGION" return fi @@ -92,6 +92,6 @@ check3x(){ done fi else - textFail "$REGION: No CloudWatch group found for CloudTrail events" "$REGION" "$group" + textFail "$REGION: No CloudWatch group found for CloudTrail events" "$REGION" fi }