diff options
author | Tim Smith <tsmith84@gmail.com> | 2016-03-04 15:56:32 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2016-03-07 10:07:30 -0800 |
commit | 8862d88f46459ffa5a216ed867d14cbbca080c88 (patch) | |
tree | 17e2640f825e4ec9fb191f38238f1043a99a5459 | |
parent | 49a4bee91d94f764c30cc87c111497b411194e0a (diff) | |
download | ohai-8862d88f46459ffa5a216ed867d14cbbca080c88.tar.gz |
Update the DMI decode mixin for Solaris
Linux / BSD use 'Product Name:' while Solaris uses 'Product:' Product.*: should be just fine
-rw-r--r-- | lib/ohai/mixin/dmi_decode.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/mixin/dmi_decode.rb b/lib/ohai/mixin/dmi_decode.rb index c8c4c5ac..619a0f36 100644 --- a/lib/ohai/mixin/dmi_decode.rb +++ b/lib/ohai/mixin/dmi_decode.rb @@ -34,9 +34,9 @@ module ::Ohai::Mixin::DmiDecode return "vmware" when /Manufacturer: Xen/ return "xen" - when /Product Name: VirtualBox/ + when /Product.*: VirtualBox/ return "vbox" - when /Product Name: OpenStack/ + when /Product.*: OpenStack/ return "openstack" when /Manufacturer: QEMU|Product Name: (KVM|RHEV)/ return "kvm" |