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

Added conversion to array when string is detected on cci in csv2inspec #241

Merged
merged 2 commits into from
Aug 9, 2021

Conversation

rscrappy
Copy link
Contributor

@rscrappy rscrappy commented Aug 4, 2021

I used the examples to test the csv2inspec, and noticed that all of the ccis existed as a string.

Fix:
Added a case for if the cci was a string, in which it would convert it into an array.

@rscrappy
Copy link
Contributor Author

rscrappy commented Aug 4, 2021

I am having issues signing at the moment, will have it signed and ready to go by tomorrow

@Bialogs
Copy link
Contributor

Bialogs commented Aug 5, 2021

I am having issues signing at the moment, will have it signed and ready to go by tomorrow

If you continue to have problems with the DCO don't worry about it because I can bypass it on my end.

lib/inspec_tools/csv.rb Outdated Show resolved Hide resolved
Changed to detect if it is an array, rather than checking if it is a string.
@Bialogs Bialogs merged commit 3cd5ad4 into mitre:master Aug 9, 2021
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

Successfully merging this pull request may close these issues.

2 participants