From 4afce540c645bb0e472312db726141c3ab18f065 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Tue, 29 Jan 2013 11:36:08 -0500 Subject: it seems facts cannot start with numbers --- puppet/modules/site_config/lib/facter/ip_interface.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'puppet') diff --git a/puppet/modules/site_config/lib/facter/ip_interface.rb b/puppet/modules/site_config/lib/facter/ip_interface.rb index 2a4a6b50..45764bfc 100644 --- a/puppet/modules/site_config/lib/facter/ip_interface.rb +++ b/puppet/modules/site_config/lib/facter/ip_interface.rb @@ -3,7 +3,7 @@ require 'facter/util/ip' Facter::Util::IP.get_interfaces.each do |interface| ip = Facter.value("ipaddress_#{interface}") if ip != nil - Facter.add(ip + "_interface" ) do + Facter.add("interface_" + ip ) do setcode do interface end -- cgit v1.2.3