Fix elb_logging_enabled check

This commit is contained in:
skyuecx0630 2024-08-05 19:25:49 +09:00
parent a06954f523
commit fb5f1fc3ca

View File

@ -109,7 +109,7 @@ def elb_logging_enabled():
result = [ result = [
attribute attribute
for attribute in filter( for attribute in filter(
lambda x: x['Key'] == "connection_logs.s3.enabled" lambda x: x['Key'] == "access_logs.s3.enabled"
and x['Value'] == "true", and x['Value'] == "true",
response['Attributes'], response['Attributes'],
) )