mirror of
https://github.com/inspec/inspec
synced 2025-02-20 07:58:43 +00:00
Fix for undefined method + for nil class error
Signed-off-by: Vasu1105 <vasundhara.jagdale@chef.io>
This commit is contained in:
parent
57c1484150
commit
c56b098761
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ module Inspec
|
||||||
end
|
end
|
||||||
|
|
||||||
def all_controls
|
def all_controls
|
||||||
ret = @rules.values
|
ret = @rules.values.reject(&:nil?)
|
||||||
ret += @control_subcontexts.map(&:all_rules).flatten
|
ret += @control_subcontexts.map(&:all_rules).flatten
|
||||||
ret
|
ret
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue