fix strip_sha256
This commit is contained in:
parent
4a64ddc86e
commit
22c1a29892
2 changed files with 13 additions and 1 deletions
|
@ -429,6 +429,9 @@ class OCIAppModel(AppRegistryDataInterface):
|
|||
|
||||
|
||||
def _strip_sha256_header(digest):
|
||||
return digest.lstrip('sha256:')
|
||||
if digest.startswith('sha256:'):
|
||||
return digest.split('sha256:')[1]
|
||||
return digest
|
||||
|
||||
|
||||
oci_app_model = OCIAppModel()
|
||||
|
|
Reference in a new issue