Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
briantist committed Oct 5, 2022
1 parent 588f539 commit fee06ab
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions galactory/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,10 @@ def discover_collections(repo, namespace=None, name=None, version=None, fast_det
continue

props = p.properties
if not props.get('version'): # TODO: change to collection_info
if not props.get('collection_info'):
continue

if 'collection_info' in props:
collection_info = json.loads(props['collection_info'][0])
else:
raise ValueError
# fallback for now just in case, we expect this never to be hit
# TODO: remove in the next version
# collection_info = load_manifest_from_artifactory(p)['collection_info']
collection_info = json.loads(props['collection_info'][0])

coldata = {
'collection_info': collection_info,
Expand All @@ -111,7 +105,6 @@ def discover_collections(repo, namespace=None, name=None, version=None, fast_det
filename=p.name,
_external=True,
),
# 'download_url': str(p),
'mime_type': info.mime_type,
'version': props['version'][0],
'semver': semver.VersionInfo.parse(props['version'][0]),
Expand Down

0 comments on commit fee06ab

Please sign in to comment.