fix(cloudwatch secrets): fix nonetype error handling (#2543)

This commit is contained in:
Nacho Rivera
2023-07-03 12:52:46 +02:00
committed by GitHub
parent 47736910ca
commit 6403feaff9
2 changed files with 13 additions and 5 deletions

View File

@@ -79,7 +79,12 @@ class Test_cloudwatch_log_group_no_secrets_in_logs:
logs_client.put_log_events(
logGroupName="test",
logStreamName="test stream",
logEvents=[{"timestamp": 0, "message": "line"}],
logEvents=[
{
"timestamp": int(unix_time_millis()),
"message": "non sensitive message",
}
],
)
from prowler.providers.aws.services.cloudwatch.cloudwatch_service import Logs