ECR: fix image wrong type for pushed_at (#7122)

This commit is contained in:
SoenkeD 2023-12-14 17:56:31 +01:00 committed by GitHub
parent 72273268f1
commit 43d3f14d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,7 +276,7 @@ class Image(BaseObject):
self.repository = repository
self.registry_id = registry_id or account_id
self.image_digest = digest
self.image_pushed_at = str(datetime.now(timezone.utc).isoformat())
self.image_pushed_at = int(datetime.now(timezone.utc).timestamp())
self.last_scan: Optional[datetime] = None
def _create_digest(self) -> None: