Skip to content

Commit

Permalink
fixed archives download (#198)
Browse files Browse the repository at this point in the history
* fixed error of collection install

Signed-off-by: Ruriko Kudo <[email protected]>

* enable download only option

Signed-off-by: Ruriko Kudo <[email protected]>

---------

Signed-off-by: Ruriko Kudo <[email protected]>
  • Loading branch information
rurikudo authored Oct 11, 2023
1 parent 9e5ef3d commit e5e55e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion ansible_risk_insight/dependency_dir_preparator.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def install_galaxy_collection_from_reqfile(self, requirements, output_dir):
logger.debug("install collection from {}".format(requirements))
src_dir = requirements.replace(requirements_yml, "")
proc = subprocess.run(
"cd {} && ansible-galaxy collection install -r {} -p {} --force".format(src_dir, requirements, output_dir),
"cd {} && ansible-galaxy collection install -r {} -p {} --force".format(src_dir, requirements_yml, output_dir),
shell=True,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
Expand Down
2 changes: 0 additions & 2 deletions ansible_risk_insight/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,6 @@ def evaluate(
logger.debug(f"finished preparing {scandata.type} {scandata.name}")

if download_only:
scandata.set_metadata_findings()
self.register_findings_to_ram(scandata.findings)
return None
self.record_end(time_records, "metadata_load")

Expand Down

0 comments on commit e5e55e5

Please sign in to comment.