Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

V-71999 throwing "undefined local variable or method linux_update" #149

Open
ljkimmel opened this issue Mar 26, 2020 · 0 comments
Open

V-71999 throwing "undefined local variable or method linux_update" #149

ljkimmel opened this issue Mar 26, 2020 · 0 comments

Comments

@ljkimmel
Copy link
Contributor

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.

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>
trevor-vaughan added a commit that referenced this issue Mar 30, 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>

Co-authored-by: Lesley Kimmel <lesley.j.kimmel@users.noreply.github.com>
Co-authored-by: Trevor Vaughan <tvaughan@onyxpoint.com>
@Andy-Adrian Andy-Adrian removed this from Org Triage Apr 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant