This patch fixes the dot escaping for variable names for
interfaces, which have been introduced with the last commit.

Signed-off-by: duritong <[EMAIL PROTECTED]>
---
 lib/facter/ipmess.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/facter/ipmess.rb b/lib/facter/ipmess.rb
index 986dc47..badf95f 100644
--- a/lib/facter/ipmess.rb
+++ b/lib/facter/ipmess.rb
@@ -17,7 +17,7 @@ end
 case Facter.value(:kernel) 
  when 'SunOS', 'Linux', 'OpenBSD', 'NetBSD', 'FreeBSD'
   Facter::IPAddress.get_interfaces.each do |interface|
-    mi = interface.gsub('/:|./', '_')
+    mi = interface.gsub('/:|\./', '_')
 
     Facter.add("ipaddress_" + mi) do
         confine :kernel => [ :sunos, :freebsd, :openbsd, :netbsd, :linux ]
-- 
1.5.5.1


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to