You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing a profile from inspec 0.27.0, the json formatted output shows the results of each control under profiles > PROFILE_NAME > controls > CONTROL_NAME > results. Field other_checks is []
When executing the same profile from the audit cookbook, the json formatted output is missing the results field inside the controls, with the other_checks field now containing the results.
I tracked the issue inside lib/inspec/runner.rb where options['metadata'] is nil when executing the profile via the audit cookbook. This causes profile_id to remain nil.
pry output when executing the profile using the audit cookbook:
When executing a profile from inspec 0.27.0, the
json
formatted output shows the results of each control underprofiles > PROFILE_NAME > controls > CONTROL_NAME > results
. Fieldother_checks
is[]
When executing the same profile from the
audit
cookbook, thejson
formatted output is missing theresults
field inside the controls, with theother_checks
field now containing the results.I tracked the issue inside lib/inspec/runner.rb where
options['metadata']
isnil
when executing the profile via theaudit
cookbook. This causesprofile_id
to remainnil
.pry
output when executing the profile using theaudit
cookbook:pry
output when executing the profile from the cli:Both runs work fine if I access the metadata via
options[:metadata]
, as added in theadd_profile
method.The text was updated successfully, but these errors were encountered: