Skip to content

Commit

Permalink
gather count of topics per region, even when unable to list subscribers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ballensans committed Jul 11, 2017
1 parent 95a4b56 commit cf9a73d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions prowler
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,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
Expand All @@ -1252,7 +1254,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
Expand Down

0 comments on commit cf9a73d

Please sign in to comment.