diff options
Diffstat (limited to 'lib/ohai/plugins/solaris2/dmi.rb')
-rw-r--r-- | lib/ohai/plugins/solaris2/dmi.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ohai/plugins/solaris2/dmi.rb b/lib/ohai/plugins/solaris2/dmi.rb index 32f935db..87cf2556 100644 --- a/lib/ohai/plugins/solaris2/dmi.rb +++ b/lib/ohai/plugins/solaris2/dmi.rb @@ -152,7 +152,7 @@ Ohai.plugin(:DMI) do field = nil elsif data = data_key_value_line.match(line) - if dmi_record == nil + if dmi_record.nil? Ohai::Log.debug("Plugin DMI: unexpected data line found before header; discarding:\n#{line}") next end @@ -160,7 +160,7 @@ Ohai.plugin(:DMI) do field = data[1] elsif data = data_key_only_line.match(line) - if dmi_record == nil + if dmi_record.nil? Ohai::Log.debug("Plugin DMI: unexpected data line found before header; discarding:\n#{line}") next end @@ -168,11 +168,11 @@ Ohai.plugin(:DMI) do field = data[1] elsif extended_data = extended_data_line.match(line) - if dmi_record == nil + if dmi_record.nil? Ohai::Log.debug("Plugin DMI: unexpected extended data line found before header; discarding:\n#{line}") next end - if field == nil + if field.nil? Ohai::Log.debug("Plugin DMI: unexpected extended data line found outside data section; discarding:\n#{line}") next end |