Skip to content

Instantly share code, notes, and snippets.

@haus
Created October 29, 2012 21:28
Show Gist options
  • Save haus/3976660 to your computer and use it in GitHub Desktop.
Save haus/3976660 to your computer and use it in GitHub Desktop.
diff --git a/lib/facter/util/ec2.rb b/lib/facter/util/ec2.rb
index 197a5c9..90368e9 100644
--- a/lib/facter/util/ec2.rb
+++ b/lib/facter/util/ec2.rb
@@ -40,8 +40,10 @@ module Facter::Util::EC2
if Facter.value(:kernel) == 'windows'
arp_command = "arp -a"
mac_address.gsub!(":","-")
- else
+ elsif Facter.value(:kernel) == 'linux'
arp_command = "arp -an"
+ else
+ arp_command = "arp -a"
end
arp_table = Facter::Util::Resolution.exec(arp_command)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment