summaryrefslogtreecommitdiff
path: root/lib/ohai/system.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/system.rb')
-rw-r--r--lib/ohai/system.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/system.rb b/lib/ohai/system.rb
index 4a09966c..c9fe2e98 100644
--- a/lib/ohai/system.rb
+++ b/lib/ohai/system.rb
@@ -88,7 +88,7 @@ module Ohai
# 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