mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +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
|
||||
|
||||
def all_controls
|
||||
ret = @rules.values
|
||||
ret = @rules.values.reject(&:nil?)
|
||||
ret += @control_subcontexts.map(&:all_rules).flatten
|
||||
ret
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue