Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdf2ckl error "delete this.baseFlags?.json" #1853

Open
usteve94 opened this issue Oct 2, 2023 · 2 comments
Open

hdf2ckl error "delete this.baseFlags?.json" #1853

usteve94 opened this issue Oct 2, 2023 · 2 comments

Comments

@usteve94
Copy link

usteve94 commented Oct 2, 2023

I ran my inspec and generated a .json file for my esxi, vm, vcsa environment.

when I run the following:
saf convert hdf2ckl -i ./vcsa.json -o ./VCSAReport.ckl --hostname --fqdn

I just downloaded the saf-v1.2.30-amd64.deb pkg.
Running Pwsh v 7.3.7
Running PowerCLI v 13.1.0

This is returned
/usr/local/lib/node_modules/@mitre/saf/node_modules/@oclif/core/lib/command.js:45
delete this.baseFlags?.json;
^

SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/usr/local/lib/node_modules/@mitre/saf/node_modules/@oclif/core/lib/index.js:5:19)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

@aaronlippold
Copy link
Member

aaronlippold commented Oct 2, 2023 via email

@Amndeep7
Copy link
Contributor

Amndeep7 commented Oct 3, 2023

Hi @usteve94, I believe the issue might be that you need to provide values for the hostname and fqdn flags.

If that doesn't resolve the issue, it would help if you could share your (possibly anonymized) inspec results file here or feel free to send it to me at amann@mitre.org so that we can debug your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants