summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2016-02-09 09:10:21 -0800
committerTim Smith <tsmith84@gmail.com>2016-02-09 09:10:21 -0800
commitb03786fcb74d6f66ca7ea69573b7d87e9779bf9c (patch)
treeda10ac9cad33a45c1dc4a834c1c92f6e665c3d86
parent3c5a0e0045d04fd94ef00b34b3185b17d9ef2964 (diff)
downloadohai-b03786fcb74d6f66ca7ea69573b7d87e9779bf9c.tar.gz
Update has_ec2_mac? to has_xen_mac? in 2 spots
-rw-r--r--lib/ohai/plugins/ec2.rb2
-rw-r--r--spec/unit/plugins/ec2_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/ec2.rb b/lib/ohai/plugins/ec2.rb
index 8381f6a9..77f35e5e 100644
--- a/lib/ohai/plugins/ec2.rb
+++ b/lib/ohai/plugins/ec2.rb
@@ -50,7 +50,7 @@ Ohai.plugin(:EC2) do
ec2 plugin: Detected EC2 by the presence of fe:ff:ff:ff:ff:ff in the ARP table. This method is unreliable and will be removed in a future version of ohai. Bootstrap using knife-ec2 or create "/etc/chef/ohai/hints/ec2.json" instead.
EOM
Ohai::Log.warn(deprecation_message)
- Ohai::Log.debug("ec2 plugin: has_ec2_mac? == true")
+ Ohai::Log.debug("ec2 plugin: has_xen_mac? == true")
return true
end
end
diff --git a/spec/unit/plugins/ec2_spec.rb b/spec/unit/plugins/ec2_spec.rb
index 77b44eb4..4c971509 100644
--- a/spec/unit/plugins/ec2_spec.rb
+++ b/spec/unit/plugins/ec2_spec.rb
@@ -265,7 +265,7 @@ describe Ohai::System, "plugin ec2" do
it "warns that the arp table method is deprecated" do
expect(Ohai::Log).to receive(:warn).with(/will be removed/)
- @plugin.has_ec2_mac?
+ @plugin.has_xen_mac?
end
end