fix case where skip is called for os_env (#2078)

Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
This commit is contained in:
Christoph Hartmann 2017-08-15 21:32:21 +02:00 committed by GitHub
parent 48e20dbd1a
commit 4a3511b6ce

View file

@ -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