Fix skip hash being passed instead of boolean value (#3323)

Fixes: https://github.com/inspec/inspec/issues/3322

Signed-off-by: Noel Georgi <git@frezbo.com>
This commit is contained in:
Noel Georgi 2018-08-23 23:17:10 +05:30 committed by Jared Quick
parent 74525d82bc
commit 741ad8a2fb

View file

@ -227,7 +227,8 @@ module Inspec
# all checks that were defined in the destination # all checks that were defined in the destination
sc = checks(src) sc = checks(src)
dst.instance_variable_set(:@__checks, sc) unless sc.empty? dst.instance_variable_set(:@__checks, sc) unless sc.empty?
sr = skip_status(src) # we need only the value of result not the Hash containing value and message
sr = skip_status(src)[:result]
set_skip_rule(dst, sr) unless sr.nil? set_skip_rule(dst, sr) unless sr.nil?
# Save merge history # Save merge history