Fix verbs support in V2

This commit is contained in:
Joseph Schorr 2015-08-18 11:53:48 -04:00
parent cf030e2a98
commit 1450b7e84c
9 changed files with 64 additions and 44 deletions

View file

@ -218,8 +218,9 @@ def get_repo_storage_by_checksum(namespace, repository_name, checksum):
raise InvalidImageException('No storage found with checksum {0}'.format(checksum))
def get_layer_path(storage_record, store):
def get_layer_path(storage_record):
""" Returns the path in the storage engine to the layer data referenced by the storage row. """
store = config.store
if not storage_record.cas_path:
return store.v1_image_layer_path(storage_record.uuid)