lib/ohai/system.rb in ohai-8.13.0 vs lib/ohai/system.rb in ohai-8.14.0
- old
+ new
@@ -86,10 +86,10 @@
end
# Users who are migrating from ohai 6 may give one or more Ohai 6 plugin
# names as the +attribute_filter+. In this case we return early because
# the v7 plugin provides map will not have an entry for this plugin.
- if attribute_filter and Array(attribute_filter).all? { |filter_item| have_v6_plugin?(filter_item) }
+ if attribute_filter && Array(attribute_filter).all? { |filter_item| have_v6_plugin?(filter_item) }
return true
end
# Then run all the version 7 plugins
begin