lib/ohai/plugins/ec2.rb in ohai-0.6.12.rc.1 vs lib/ohai/plugins/ec2.rb in ohai-0.6.12.rc.2

- old
+ new

@@ -28,12 +28,13 @@ extend Ohai::Mixin::Ec2Metadata def has_ec2_mac? network[:interfaces].values.each do |iface| unless iface[:arp].nil? - has_mac = iface[:arp].value?("fe:ff:ff:ff:ff:ff") - Ohai::Log.debug("has_ec2_mac? == true") - return true if has_mac + if iface[:arp].value?("fe:ff:ff:ff:ff:ff") + Ohai::Log.debug("has_ec2_mac? == true") + return true + end end end Ohai::Log.debug("has_ec2_mac? == false") false end