]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
ENTERPRISE-281 fixes issue with has_interfaces and case mismatch causing us not to...
authorTravis Fields <travis@puppetlabs.com>
Wed, 8 Oct 2014 17:14:10 +0000 (10:14 -0700)
committerTravis Fields <travis@puppetlabs.com>
Wed, 8 Oct 2014 17:14:10 +0000 (10:14 -0700)
lib/puppet/parser/functions/has_interface_with.rb

index 927b0dfebc49633615e970fb7652a50653753fd0..d5dbe473f6c33ae1e8479252275688274973fb6b 100644 (file)
@@ -34,13 +34,15 @@ has_interface_with("lo")                        => true
     end
 
     kind, value = args
-
+    kind.downcase!
+    
     if lookupvar(kind) == value
       return true
     end
 
     result = false
     interfaces.each do |iface|
+      iface.downcase!
       if value == lookupvar("#{kind}_#{iface}")
         result = true
         break