From ecde62451c227879b9ffd9a64cbf1829dcc9024e Mon Sep 17 00:00:00 2001 From: Venki Date: Mon, 16 Sep 2019 09:16:59 +0100 Subject: [PATCH] remove unnecessary variables and removed echo --- checks/check26 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/checks/check26 b/checks/check26 index 711af860..796ff26e 100644 --- a/checks/check26 +++ b/checks/check26 @@ -16,9 +16,6 @@ CHECK_ALTERNATE_check206="check26" check26(){ # "Ensure S3 bucket access logging is enabled on the CloudTrail S3 bucket (Scored)" - local CHECK_OK - local CHECK_WARN - local CHECK_CROSS_ACCOUNT_WARN CLOUDTRAILS=$($AWSCLI cloudtrail describe-trails $PROFILE_OPT --region "$REGION" --query 'trailList[*].Name' --output text| tr '\011' '\012' | awk -F: '{print $1}') CURRENT_ACCOUNT_ID=$($AWSCLI sts $PROFILE_OPT get-caller-identity --region "$REGION" --query Account --output text) @@ -48,6 +45,6 @@ check26(){ done else - echo "No CloudWatch group found for CloudTrail events" + textFail "No CloudWatch group found for CloudTrail events" fi -} \ No newline at end of file +}