From 93b815ecf28cd750037578bf076fba04c117e940 Mon Sep 17 00:00:00 2001 From: Ben Allen Date: Tue, 11 Jul 2017 15:52:21 -0500 Subject: [PATCH] gather count of topics per region, even when unable to list subscribers. --- prowler | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/prowler b/prowler index 6b8b424822..19e6b6a727 100755 --- a/prowler +++ b/prowler @@ -1246,7 +1246,9 @@ check315(){ if [[ $? -eq 255 ]]; then # Permission error export CAN_SNS_LIST_SUBS=0 - textNotice "No permission to list topics" + textNotice "No permission to list subscribers in topics" + ntopics=$(echo $TOPICS_LIST | wc -w ) + textNotice "Region $regx has $ntopics topics" "$regx" break; fi if [[ $(grep -v 'None' $CHECK_TOPIC_LIST) ]]; then @@ -1259,7 +1261,9 @@ check315(){ fi done elif [[ $CAN_SNS_LIST_SUBS -eq 0 ]]; then - break + ntopics=$(echo $TOPICS_LIST | wc -w ) + textNotice "Region $regx has $ntopics topics" "$regx" + # break else textNotice "Region $regx doesn't have topics" "$regx" fi