From 9d76ba0c7bcea5f61e252fa6585391173fc0cbc2 Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Thu, 16 Sep 2021 13:29:06 +0000 Subject: [PATCH] Removed xargs from line 30, not needed. Tested code against resources. --- checks/check_extra7151 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checks/check_extra7151 b/checks/check_extra7151 index 433a07a2..7e58ac96 100644 --- a/checks/check_extra7151 +++ b/checks/check_extra7151 @@ -27,12 +27,12 @@ CHECK_CAF_EPIC_extra7151='Data Protection' extra7151(){ # "Check if DynamoDB tables point-in-time recovery (PITR) is enabled" for regx in $REGIONS; do - LIST_OF_DYNAMODB_TABLES=$($AWSCLI dynamodb list-tables $PROFILE_OPT --region $regx --query 'TableNames[*]' --output text|xargs -n1) + LIST_OF_DYNAMODB_TABLES=$($AWSCLI dynamodb list-tables $PROFILE_OPT --region $regx --query 'TableNames[*]' --output text) if [[ $LIST_OF_DYNAMODB_TABLES ]]; then for dynamodb_table in $LIST_OF_DYNAMODB_TABLES; do POINT_IN_TIME_RECOVERY_ENABLED=$($AWSCLI dynamodb describe-continuous-backups $PROFILE_OPT --region $regx --table-name $dynamodb_table | jq '.[].PointInTimeRecoveryDescription | select(.PointInTimeRecoveryStatus=="ENABLED")') if [[ $POINT_IN_TIME_RECOVERY_ENABLED ]]; then - textPass "$regx: $dynamodb_table has point-in-time recovery enabled" "$regx" "$dynamodb_table" + textPass "$regx: $dynamodb_table has point-in-time recovery enabled." "$regx" "$dynamodb_table" else textFail "$regx: $dynamodb_table does not have point-in-time recovery enabled." "$regx" "$dynamodb_table" fi