From: Travis Fields Date: Wed, 8 Oct 2014 17:14:10 +0000 (-0700) Subject: ENTERPRISE-281 fixes issue with has_interfaces and case mismatch causing us not to... X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8ad7f68ecaf444b39c4ca89e2e62790bc00ad89a;p=puppet-stdlib.git ENTERPRISE-281 fixes issue with has_interfaces and case mismatch causing us not to return some interfaces --- diff --git a/lib/puppet/parser/functions/has_interface_with.rb b/lib/puppet/parser/functions/has_interface_with.rb index 927b0df..d5dbe47 100644 --- a/lib/puppet/parser/functions/has_interface_with.rb +++ b/lib/puppet/parser/functions/has_interface_with.rb @@ -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