Skip to content

Commit eb7e30e

Browse files
author
Glenn Snyder
authored
Merge pull request #125 from blackducksoftware/match-on-scan-data-when-downloading-scans
Matching on "enclosure" is returning an empty list when downloading bdio files.
2 parents 276f8cd + 62fb0b2 commit eb7e30e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blackduck/HubRestApi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ def download_project_scans(self, project_name,version_name, output_folder=None):
13311331

13321332
for item in codelocations['items']:
13331333
links = item['_meta']['links']
1334-
matches = [x for x in links if x['rel'] == 'enclosure']
1334+
matches = [x for x in links if x['rel'] == 'enclosure' or x['rel'] == 'scan-data']
13351335
for m in matches:
13361336
url = m['href']
13371337
filename = url.split('/')[6]

0 commit comments

Comments
 (0)