mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
fix case where skip is called for os_env (#2078)
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
This commit is contained in:
parent
48e20dbd1a
commit
4a3511b6ce
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ module Inspec::Resources
|
|||
out = inspec.command(command)
|
||||
|
||||
unless out.exit_status == 0
|
||||
skip_resource "Can't read environment variables on #{os[:name]}. "\
|
||||
skip_resource "Can't read environment variables on #{inspec.os.name}. "\
|
||||
"Tried `#{command}` which returned #{out.exit_status}"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue