mirror of
https://github.com/inspec/inspec
synced 2024-11-22 20:53:11 +00:00
bugfix: call lambda correctly
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
5ba7fb0386
commit
1833ff9aa0
1 changed files with 5 additions and 5 deletions
|
@ -69,11 +69,11 @@ module Vulcano
|
|||
}
|
||||
|
||||
meta['checks'].each do |k,v|
|
||||
invalid("Missing impact for rule #{k}") if v['impact'].nil?
|
||||
invalid("Impact cannot be larger than 1.0 for rule #{k}") if v['impact'] > 1.0
|
||||
invalid("Impact cannot be less than 0.0 for rule #{k}") if v['impact'] < 0.0
|
||||
invalid("Missing title for rule #{k}") if v['title'].nil? || v['title'] == k
|
||||
invalid("Missing description for rule #{k}") if v['desc'].nil?
|
||||
invalid.("Missing impact for rule #{k}") if v['impact'].nil?
|
||||
invalid.("Impact cannot be larger than 1.0 for rule #{k}") if v['impact'] > 1.0
|
||||
invalid.("Impact cannot be less than 0.0 for rule #{k}") if v['impact'] < 0.0
|
||||
invalid.("Missing title for rule #{k}") if v['title'].nil? || v['title'] == k
|
||||
invalid.("Missing description for rule #{k}") if v['desc'].nil?
|
||||
end
|
||||
|
||||
@log.ok "Valid spec file in #{f}" if valid && specs.instance_variable_get(:@invalid_calls).empty?
|
||||
|
|
Loading…
Reference in a new issue