Skip to content

Commit 5063f41

Browse files
committed
Return only result when call it as function
1 parent 500699c commit 5063f41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fosslight_source/run_scancode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def run_scan(path_to_scan, output_file_name="",
134134
logger.info(_str_final_result_log)
135135
except Exception as ex:
136136
logger.warn("Failed to print result log. "+ str(ex))
137-
return success, _str_final_result_log, result_list
137+
return success, _result_log["Scan Result"], result_list
138138

139139

140140
if __name__ == '__main__':

0 commit comments

Comments
 (0)