Skip to content

Commit

Permalink
hotfix to make the sbom output command work with the new targets argu…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
ajurgenson55 committed Apr 30, 2020
1 parent 4b25da5 commit a737043
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -237,7 +237,7 @@ Run the python command using the shell you want to target and export to an env v

```
# using target python shell for system or virtual environment
$ export JAKE_TARGET=`python -c "import site; print(site.getsitepackages())"
$ export JAKE_TARGET=`python -c "import site; print(site.getsitepackages())"`
# using whatever shell has access to the jake module, can be a global install or stand-alone virtual environment
$ jake ddt -t "$JAKE_TARGET"
```
Expand Down
4 changes: 2 additions & 2 deletions jake/__main__.py
Expand Up @@ -147,7 +147,7 @@ def config(conf):
'-o', '--output',
default='bom.xml',
help='Specify a file name and/or directory to save the CycloneDx sbom')
def sbom(verbose, quiet, conda, target, output):
def sbom(verbose, quiet, conda, targets, output):
"""
Generates a purl only bom (no vulns) and outputs it to a file
that can be picked up by a Sonatype CLI or CI Plugin
Expand All @@ -161,7 +161,7 @@ def sbom(verbose, quiet, conda, target, output):
__setup_logger(verbose)
__check_stdin(conda)

sbom_xml = __sbom_control_flow(conda, target).decode('utf-8')
sbom_xml = __sbom_control_flow(conda, targets).decode('utf-8')
with open(output, 'w') as bom_file:
print(sbom_xml, file=bom_file)
_exit(0)
Expand Down

0 comments on commit a737043

Please sign in to comment.