Skip to content

Commit

Permalink
fix dependency scanning (#162)
Browse files Browse the repository at this point in the history
Signed-off-by: hirokuni-kitahara <[email protected]>
  • Loading branch information
hirokuni-kitahara authored Aug 4, 2023
1 parent 68c30c0 commit c0de686
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ansible_risk_insight/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,11 @@ def evaluate(
logger.debug(f'Use spec data for "{ext_name}" in RAM DB')

if not dep_loaded:
# if the dependency was not found in RAM and if the target path does not exist,
# then we give up getting dependency data here
if not os.path.exists(ext_target_path):
continue

# scan dependencies and save findings to ARI RAM
dep_scanner = ARIScanner(
root_dir=self.root_dir,
Expand Down

0 comments on commit c0de686

Please sign in to comment.