summaryrefslogtreecommitdiff
path: root/lib/ohai/mixin/dmi_decode.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2016-03-04 16:23:34 -0800
committerTim Smith <tsmith84@gmail.com>2016-03-07 10:07:30 -0800
commit56eca063f3b58990c7396a4f1dcca9702dfdb55d (patch)
tree90125f9ddfda23bc3cf7f38c30ef1c83cd08473a /lib/ohai/mixin/dmi_decode.rb
parentdece33cb1dcacab8d556f421fc68fbd1f38ed067 (diff)
downloadohai-56eca063f3b58990c7396a4f1dcca9702dfdb55d.tar.gz
Fixup the existing tests
We'll want a few more tests to be added here
Diffstat (limited to 'lib/ohai/mixin/dmi_decode.rb')
-rw-r--r--lib/ohai/mixin/dmi_decode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/mixin/dmi_decode.rb b/lib/ohai/mixin/dmi_decode.rb
index 619a0f36..8ec109f5 100644
--- a/lib/ohai/mixin/dmi_decode.rb
+++ b/lib/ohai/mixin/dmi_decode.rb
@@ -21,7 +21,7 @@ module ::Ohai::Mixin::DmiDecode
dmi_data.each_line do |line|
case line
when /Manufacturer: Microsoft/
- if dmi_data =~ /Product Name: Virtual Machine/
+ if dmi_data =~ /Product.*: Virtual Machine/
if dmi_data =~ /Version: (7.0|Hyper-V)/
return "hyperv"
elsif dmi_data =~ /Version: (VS2005R2|6.0)/