summaryrefslogtreecommitdiff
path: root/lib/ohai/common/dmi.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/common/dmi.rb')
-rw-r--r--lib/ohai/common/dmi.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/common/dmi.rb b/lib/ohai/common/dmi.rb
index c7f8a5e1..cc9f4c10 100644
--- a/lib/ohai/common/dmi.rb
+++ b/lib/ohai/common/dmi.rb
@@ -117,12 +117,12 @@ module Ohai
def convenience_keys(dmi)
dmi.each do |type, records|
in_common = Mash.new
- next unless records.class.to_s == "Mash"
+ next unless records.is_a?(Mash)
next unless records.key?("all_records")
records[:all_records].each do |record|
record.each do |field, value|
- next if value.class.to_s == "Mash"
+ next if value.is_a?(Mash)
next if field.to_s == "application_identifier"
next if field.to_s == "size"
next if field.to_s == "record_id"