diff options
author | Tim Smith <tsmith84@gmail.com> | 2016-02-02 10:16:34 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2016-02-02 10:16:34 -0800 |
commit | bc60199541f62bec7fc23ccc260abe334a6b3e77 (patch) | |
tree | 614c159d03389cb19747ec529529e0de913c2c8e | |
parent | 3b6d44dcc66cffc7ec04724976c5eac2f99f9958 (diff) | |
download | ohai-bc60199541f62bec7fc23ccc260abe334a6b3e77.tar.gz |
Clarify where this detection will work in the comments
-rw-r--r-- | lib/ohai/plugins/ec2.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ohai/plugins/ec2.rb b/lib/ohai/plugins/ec2.rb index 42eb5136..7ad80e5e 100644 --- a/lib/ohai/plugins/ec2.rb +++ b/lib/ohai/plugins/ec2.rb @@ -43,8 +43,10 @@ Ohai.plugin(:EC2) do end # look for amazon string in dmi bios data + # this only works on hvm instances as paravirt instances have no dmi data def has_ec2_dmi? begin + # detect a version of '4.2.amazon' if dmi[:bios][:all_records][0][:Version] =~ /amazon/ Ohai::Log.debug("has_ec2_dmi? == true") true |