mirror of
https://github.com/inspec/inspec
synced 2024-11-10 15:14:23 +00:00
Merge pull request #5480 from inspec/vasundhara/small_fix
Minor fix - Method expected to return boolean but it was returning nil if condition check fails
This commit is contained in:
commit
0aef9f11eb
1 changed files with 1 additions and 0 deletions
|
@ -194,6 +194,7 @@ module Inspec
|
|||
|
||||
# Check if the given control exist in the --controls option
|
||||
def control_exist_in_controls_list?(id)
|
||||
id_exist_in_list = false
|
||||
if profile_config_exist?
|
||||
id_exist_in_list = @conf["profile"].include_controls_list.any? do |inclusion|
|
||||
# Try to see if the inclusion is a regex, and if it matches
|
||||
|
|
Loading…
Reference in a new issue