Skip to content

Commit 8e5b28a

Browse files
committed
chore: solve comment
1 parent 268af61 commit 8e5b28a

File tree

1 file changed

+1
-1
lines changed
  • prowler/providers/aws/lib/cloudtrail_timeline

1 file changed

+1
-1
lines changed

prowler/providers/aws/lib/cloudtrail_timeline/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ class TimelineEvent(BaseModel):
344344
event_details: dict[str, Any] = {}
345345

346346
@validator("timestamp", pre=True)
347-
def ensure_timezone_aware(v):
347+
def ensure_timezone_aware(cls, v):
348348
"""Ensure timestamp is timezone-aware UTC."""
349349
if isinstance(v, datetime) and v.tzinfo is None:
350350
return v.replace(tzinfo=timezone.utc)

0 commit comments

Comments
 (0)