mirror of
https://github.com/inspec/inspec
synced 2024-11-15 17:28:02 +00:00
execute lazy instance fields
Signed-off-by: Sathish <sbabu@progress.com>
This commit is contained in:
parent
77de4644c5
commit
ec47508fbd
1 changed files with 3 additions and 0 deletions
|
@ -492,7 +492,10 @@ module FilterTable
|
|||
result = where(nil)
|
||||
if custom_property_struct.opts[:lazy]
|
||||
result.populate_lazy_field(custom_property_struct.field_name, filter_criteria_value)
|
||||
elsif custom_property_struct.opts[:lazy_instance]
|
||||
result.populate_lazy_instance_field(custom_property_struct.field_name, filter_criteria_value)
|
||||
end
|
||||
|
||||
result = where(nil).get_column_values(custom_property_struct.field_name) # TODO: the where(nil). is likely unneeded
|
||||
result = result.flatten.uniq.compact if custom_property_struct.opts[:style] == :simple
|
||||
result
|
||||
|
|
Loading…
Reference in a new issue