From fa42693cddc3202753821eaed042930bddb5e93a Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 7 Jan 2016 12:34:19 -0500 Subject: [PATCH] Fix backfill content checksums --- util/migrate/backfill_content_checksums.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/util/migrate/backfill_content_checksums.py b/util/migrate/backfill_content_checksums.py index c03bb13b6..3530498c1 100644 --- a/util/migrate/backfill_content_checksums.py +++ b/util/migrate/backfill_content_checksums.py @@ -54,7 +54,6 @@ class ImageStoragePlacement(BaseModel): location = ForeignKeyField(ImageStorageLocation) - def _get_image_storage_locations(storage_id): placements_query = (ImageStoragePlacement .select(ImageStoragePlacement, ImageStorageLocation) @@ -91,7 +90,7 @@ def backfill_content_checksums(): with CloseForLongOperation(app.config): try: # Compute the checksum - layer_path = storage.image_layer_path(candidate_storage.uuid) + layer_path = storage.v1_image_layer_path(candidate_storage.uuid) with storage.stream_read_file(locations, layer_path) as layer_data_handle: checksum = 'sha256:{0}'.format(checksums.sha256_file(layer_data_handle)) except Exception as exc: