summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-04-27 16:50:59 -0700
committerTim Smith <tsmith@chef.io>2017-04-27 16:50:59 -0700
commitd63e182f8bc61754c30184c1c4e3e789784496a8 (patch)
treec78d0baedb032077bf1964fe68e91d9e605994e4
parentce36fc796ee38f6ed0c2e0ce849420860c9dbef4 (diff)
downloadohai-d63e182f8bc61754c30184c1c4e3e789784496a8.tar.gz
Clarify what’s happening with unsupported metadata a bit better
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/ohai/mixin/ec2_metadata.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/mixin/ec2_metadata.rb b/lib/ohai/mixin/ec2_metadata.rb
index be268434..ba0e7c2d 100644
--- a/lib/ohai/mixin/ec2_metadata.rb
+++ b/lib/ohai/mixin/ec2_metadata.rb
@@ -62,7 +62,7 @@ module Ohai
versions = response.body.split("\n").sort
until versions.empty? || EC2_SUPPORTED_VERSIONS.include?(versions.last)
pv = versions.pop
- Ohai::Log.debug("ec2 metadata mixin: EC2 shows unsupported metadata version: #{pv}") unless pv == "latest"
+ Ohai::Log.debug("ec2 metadata mixin: EC2 lists metadata version: #{pv} not yet supported by Ohai") unless pv == "latest"
end
Ohai::Log.debug("ec2 metadata mixin: EC2 metadata version: #{versions.last}")
if versions.empty?