inspec-profile-disa_stig-el7
inspec-profile-disa_stig-el7 copied to clipboard
V-71999 throwing "undefined local variable or method `linux_update`"
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.