This commit is contained in:
gabrielsoltz
2019-06-07 05:51:26 +01:00
parent 8ee06449b7
commit 89268e4875

View File

@@ -21,7 +21,7 @@ extra713(){
# Guardduty Regions are not the same as REGIONS
PYTHON=$(which python)
if [ ! -z "${PYTHON}" ]; then
#textInfo "Using python and boto3 for getting Guardduty Available Regions"
textInfo "Using python and boto3 for getting Guardduty Available Regions"
GD_REGIONS=($($PYTHON -c "import boto3 ; session = boto3.session.Session() ; print (session.get_available_regions('guardduty'))"))
for GD_REGION in "${GD_REGIONS[@]}"; do GD_REGIONS_PARSED+="$(echo "$GD_REGION" | cut -d \' -f 2 | cut -d \' -f 1 && echo " ")"; done
else