Changed Route53 checks7152 and 7153 to INFO when no domains found

This commit is contained in:
Toni de la Fuente committed 2022-01-06 13:08:11 +01:00
1 parent d3e50169d9
commit d65eabcd9e
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -36,7 +36,7 @@ CHECK_DOC_extra7152='https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/d
CHECK_CAF_EPIC_extra7152='Data Protection'
extra7152(){
echo "Route53 is a global service, looking for domains in US-EAST-1"
# echo "Route53 is a global service, looking for domains in US-EAST-1"
DOMAIN_NAMES=$($AWSCLI route53domains list-domains $PROFILE_OPT --region us-east-1 --query 'Domains[*].DomainName' --output text )
if [[ $DOMAIN_NAMES ]];then
for domain_name in $DOMAIN_NAMES;do
@@ -48,6 +48,6 @@ extra7152(){
fi
done
else
textPass "$regx: No Domain Names found" "$regx"
textInfo "$regx: No Domain Names found" "$regx"
fi
}
+2 -1
View File
@@ -34,6 +34,7 @@ CHECK_CAF_EPIC_extra7153='Data Protection'
extra7153(){
# Route53 is a global service, looking for domains in US-EAST-1
# this is also valid for GovCloud https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/setting-up-route53.html
DOMAIN_NAMES=$($AWSCLI route53domains list-domains $PROFILE_OPT --region us-east-1 --query 'Domains[*].DomainName' --output text )
if [[ $DOMAIN_NAMES ]];then
for domain_name in $DOMAIN_NAMES;do
@@ -46,6 +47,6 @@ extra7153(){
fi
done
else
textPass "$regx: No Domain Names found" "$regx"
textInfo "$regx: No Domain Names found" "$regx"
fi
}