Fix bug where we weren't properly caching enum values and we were always looking up the media type when constructing manifests

This commit is contained in:
Joseph Schorr 2019-01-22 14:46:38 -05:00
parent ed75daf3d9
commit bbfb0211dc
5 changed files with 51 additions and 21 deletions

View file

@ -37,6 +37,7 @@ def _tag_dict(tag):
# TODO(jschorr): Remove this check once fully on OCI data model.
if tag.manifest_digest:
tag_info['manifest_digest'] = tag.manifest_digest
if tag.manifest:
try:
tag_info['manifest'] = json.loads(tag.manifest.internal_manifest_bytes.as_unicode())