From 074979300a6ae94d19beacdb486077ab1bc47e16 Mon Sep 17 00:00:00 2001 From: Chris Bajumpaa Date: Thu, 24 May 2018 15:54:21 -0400 Subject: Detect virtualization on newer AWS instance types. (m5) --- .gitignore | 1 + lib/ohai/mixin/dmi_decode.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index ee7d0274..8eae7fac 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ coverage/ .bundle *~ vendor +.idea/* diff --git a/lib/ohai/mixin/dmi_decode.rb b/lib/ohai/mixin/dmi_decode.rb index 971911c8..d1cb87aa 100644 --- a/lib/ohai/mixin/dmi_decode.rb +++ b/lib/ohai/mixin/dmi_decode.rb @@ -44,6 +44,8 @@ module ::Ohai::Mixin::DmiDecode return "bhyve" when /Manufacturer: Veertu/ return "veertu" + when /Manufacturer: Amazon EC2/ + return "amazonec2" end end nil -- cgit v1.2.1