diff --git a/ansible_risk_insight/dependency_dir_preparator.py b/ansible_risk_insight/dependency_dir_preparator.py index dc291389..a206673a 100644 --- a/ansible_risk_insight/dependency_dir_preparator.py +++ b/ansible_risk_insight/dependency_dir_preparator.py @@ -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,