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

xccdf_results_mapper undefined method `match' #120

Closed
ccoffin opened this issue Nov 12, 2021 · 2 comments · Fixed by mitre/heimdall2#2303
Closed

xccdf_results_mapper undefined method `match' #120

ccoffin opened this issue Nov 12, 2021 · 2 comments · Fixed by mitre/heimdall2#2303
Assignees

Comments

@ccoffin
Copy link

ccoffin commented Nov 12, 2021

Trying to convert some OpenSCAP produced XCCDF results XML into HDF using xccdf_results_mapper on two different systems and have received the following error message in each case.

[number6@localhost Documents]$ sudo docker run -it -v $(pwd):/share mitre/heimdall_tools xccdf_results_mapper -x rhel7scap_2.xml -o hdf_results.json
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Traceback (most recent call last):
13: from /usr/local/bundle/bin/heimdall_tools:23:in <main>' 12: from /usr/local/bundle/bin/heimdall_tools:23:in load'
11: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/exe/heimdall_tools:14:in <top (required)>' 10: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/base.rb:466:in start'
9: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/command.rb:44:in dispatch' 8: from /usr/local/bundle/gems/thor-0.20.3/lib/thor.rb:387:in dispatch'
7: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/invocation.rb:126:in invoke_command' 6: from /usr/local/bundle/gems/thor-0.20.3/lib/thor/command.rb:27:in run'
5: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/cli.rb:49:in xccdf_results_mapper' 4: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/xccdf_results_mapper.rb:117:in to_hdf'
3: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/xccdf_results_mapper.rb:117:in each_with_index' 2: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/xccdf_results_mapper.rb:117:in each'
1: from /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/xccdf_results_mapper.rb:132:in block in to_hdf' /usr/local/bundle/gems/heimdall_tools-1.3.48.1.g88bd047/lib/heimdall_tools/xccdf_results_mapper.rb:93:in satisfies_parse': undefined method `match' for #Hash:0x00007f20ff9810d0 (NoMethodError)

@aaronlippold
Copy link
Member

It's possible the actual file that producing the error would also be useful if you could attach it

@ccoffin
Copy link
Author

ccoffin commented Nov 12, 2021

Ah yes... here you go.

rhel7scap_2.zip

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 a pull request may close this issue.

4 participants