Skip to content

Commit

Permalink
fix: Pass the redo flag to the executor
Browse files Browse the repository at this point in the history
If the redo flag is set, the executor should not load data from
the cache. Hence we pass the redo flag to the load_from_cache
function used in the scancode executor.

Fixes #999

Signed-off-by: Nisha K <nishak@vmware.com>
  • Loading branch information
Nisha K authored and rnjudge committed Sep 2, 2021
1 parent f5eb1ab commit dfc84d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tern/extensions/scancode/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def execute(self, image_obj, redo=False):
'''
for layer in image_obj.layers:
# load the layers from cache
common.load_from_cache(layer)
common.load_from_cache(layer, redo)
if redo or not layer.files_analyzed:
# the layer doesn't have analyzed files, so run analysis
file_list, package_list = collect_layer_data(layer)
Expand Down

0 comments on commit dfc84d5

Please sign in to comment.