Issue #1924 has been updated by jamtur01.

snmemetz - I didn't use your fix.

<pre>
Signed-off-by: James Turnbull <[email protected]>
---
 CHANGELOG             |    2 ++
 lib/facter/util/ip.rb |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 4719b40..346b9e6 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
 1.5.3:
+    Fixed #1924 - Fixed lo / lo:0 local interface matching
+
     Added network fact
 
     Fixed #1870 - Format all subnet masks as human-readable
diff --git a/lib/facter/util/ip.rb b/lib/facter/util/ip.rb
index 6c01033..d4ea123 100644
--- a/lib/facter/util/ip.rb
+++ b/lib/facter/util/ip.rb
@@ -123,7 +123,7 @@ module Facter::Util::IP
         else
             output_int = get_single_interface_output(interface)
 
-            if interface != "lo" && interface != "lo0"
+            if interface != /^lo[0:]?\d?/
                 output_int.each do |s|
                     if s =~ regex
                         value = $1
-- 1.6.0.6
</pre>

It's fixed in this patch.
----------------------------------------
Bug #1924: Device "lo:0" does not exist
http://projects.reductivelabs.com/issues/1924

Author: snemetz
Status: Closed
Priority: Normal
Assigned to: jamtur01
Category: library
Target version: 1.5.4
Complexity: Unknown
Keywords: 


I have a number of systems that have multiple loopback interfaces.
Just installed 1.5.3 on one of them and facter gives the following errors on 
starting:
Device "lo:1" does not exist.
Device "lo:0" does not exist.
Device "lo:0" does not exist.
Device "lo:0" does not exist.
Device "lo:1" does not exist.
Device "lo:1" does not exist.
Device "lo:0" does not exist.
Device "lo:1" does not exist.
Device "lo:1" does not exist.
Device "lo:0" does not exist.

It does list these in the interfaces, ipaddress, netmask, & network, but not lo
Looks like there is an filter for lo but not aliases for it.



----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to