Fix serialization of blobs to/from the cache

Also makes sure the test checks that serialization
This commit is contained in:
Joseph Schorr 2018-03-02 14:22:55 -05:00
parent 0bc1a06f4c
commit 24b77bbc10
3 changed files with 12 additions and 6 deletions

View file

@ -227,7 +227,7 @@ class PreOCIModel(DockerRegistryV2DataInterface):
uuid=blob_record.uuid,
digest=digest,
size=blob_record.image_size,
locations=blob_record.locations,
locations=list(blob_record.locations),
cas_path=blob_record.cas_path
)
except model.BlobDoesNotExist: