Closed Didar-Bhullar closed 4 years ago
From your test, it look like you need to use JBOSS_HOME
as your replacement tag instead of DAIGNOSTIC_DEST
, since they are specific to whatever profile you are using. Try this:
inspec_tools xccdf2inspec -x examples/xccdf2inspec/data/U_JBOSS_EAP_6-3_STIG_V1R2_Manual-xccdf.xml -o xccdf2inspec_replace_test -r JBOSS_HOME
Thanks! I'll update it
How to reproduce error
Try to use the
--replace-tags
flag with thexccdf2inspec
command:Fix
The
replace_tags
cli option for thexccdf2inspec
command is missing thetype: :array
which would lead to String error when trying to use that flag. This fix allows you to successfully use thereplace_tags
cli option.