summaryrefslogtreecommitdiff
path: root/puppet/modules/site_config/lib
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-01-29 11:36:08 -0500
committerMicah Anderson <micah@riseup.net>2013-01-29 13:29:10 -0500
commit4afce540c645bb0e472312db726141c3ab18f065 (patch)
treedc1c46fbcf98ef5bf15852c4ea9750519587ba96 /puppet/modules/site_config/lib
parent7480df63974459e733a6733994adc19ac464be6a (diff)
it seems facts cannot start with numbers
Diffstat (limited to 'puppet/modules/site_config/lib')
-rw-r--r--puppet/modules/site_config/lib/facter/ip_interface.rb2
1 files changed, 1 insertions, 1 deletions
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