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
{{ message }}
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
This looks like a scoping issue for utilizing resource references inside of describe and/or subject blocks. Setting a variable to the contents of the resource outside of the block seems to fix the issue.
I don't fully understand Inspec scoping so there might be a more elegant solution.
The text was updated successfully, but these errors were encountered:
ljkimmel
pushed a commit
to ljkimmel/inspec-profile-disa_stig-el7
that referenced
this issue
Mar 26, 2020
Moved the 'linux_update' resource reference out of the describe/subject
block into a control-level variable. Also, generated a list of package
names to pass to the 'List of out-of-date packages' block instead of
the entire JSON object for cleaner output.
Signed-off-by: Lesley Kimmel <lesley.j.kimmel@users.noreply.github.com>
Moved the 'linux_update' resource reference out of the describe/subject
block into a control-level variable. Also, generated a list of package
names to pass to the 'List of out-of-date packages' block instead of
the entire JSON object for cleaner output.
Signed-off-by: Lesley Kimmel <lesley.j.kimmel@users.noreply.github.com>
Co-authored-by: Lesley Kimmel <lesley.j.kimmel@users.noreply.github.com>
Co-authored-by: Trevor Vaughan <tvaughan@onyxpoint.com>
This looks like a scoping issue for utilizing resource references inside of describe and/or subject blocks. Setting a variable to the contents of the resource outside of the block seems to fix the issue.
I don't fully understand Inspec scoping so there might be a more elegant solution.
The text was updated successfully, but these errors were encountered: