Skip to content

Commit

Permalink
Fix loading S3 state serialized from localstack-persist v3
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Nov 21, 2024
1 parent d402aa1 commit 03ee633
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/localstack_persist/prepare_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def prepare_service(service_name: str):
def prepare_s3():

from .s3.storage import PersistedS3ObjectStore
from localstack.services.s3.models import S3Object

service = SERVICE_PLUGINS.get_service("s3")
store = PersistedS3ObjectStore()
Expand All @@ -28,6 +29,11 @@ def prepare_s3():

migrate_ephemeral_object_store(old_objects_path, store)

# HACK for CertBundles that were persisted without the `internal_last_modified`/`sse_key_hash`/`precondition` properties
setattr(S3Object, "internal_last_modified", None)
setattr(S3Object, "sse_key_hash", None)
setattr(S3Object, "precondition", None)


@once
def prepare_acm():
Expand Down

0 comments on commit 03ee633

Please sign in to comment.