Skip to content

Commit 62fb0b2

Browse files
Matching on "scan-data" in items['_meta']['links]['rel] because "enclosure" is returning an empty list when downloading bdio files.
1 parent 276f8cd commit 62fb0b2

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)