Skip to content

Commit cf82a62

Browse files
authored
include_license_info in Reporting.py
1 parent 05b055f commit cf82a62

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

blackduck/Reporting.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def create_version_reports(self, version, report_list, format="CSV"):
2525
return self.execute_post(version_reports_url, post_data)
2626

2727
valid_notices_formats = ["TEXT", "JSON"]
28-
def create_version_notices_report(self, version, format="TEXT", include_copyright_info=True):
28+
def create_version_notices_report(self, version, format="TEXT", include_copyright_info=True, include_license_info=True):
2929
assert format in valid_notices_formats, "Format must be one of {}".format(valid_notices_formats)
3030

3131
post_data = {
@@ -35,6 +35,8 @@ def create_version_notices_report(self, version, format="TEXT", include_copyrigh
3535
}
3636
if include_copyright_info:
3737
post_data.update({'categories': ["COPYRIGHT_TEXT"] })
38+
if include_license_info:
39+
post_data.update({'categories': ["COPYRIGHT_TEXT","LICENSE_DATA","LICENSE_TEXT"] })
3840

3941
notices_report_url = self.get_link(version, 'licenseReports')
4042
return self.execute_post(notices_report_url, post_data)

0 commit comments

Comments
 (0)