summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColleen Murphy <cmurphy@users.noreply.github.com>2014-10-08 11:33:10 -0700
committerColleen Murphy <cmurphy@users.noreply.github.com>2014-10-08 11:33:10 -0700
commitcb6c7d8e49cdd392dfa55c27cf78795125163c70 (patch)
treeed0717e7d9f123c5b525485cac053cf219598e1c
parenta44cf3e4621016896fe2a49b3b45ff1f5ac43cf2 (diff)
parent8ad7f68ecaf444b39c4ca89e2e62790bc00ad89a (diff)
downloadpuppet-stdlib-cb6c7d8e49cdd392dfa55c27cf78795125163c70.tar.gz
puppet-stdlib-cb6c7d8e49cdd392dfa55c27cf78795125163c70.tar.bz2
Merge pull request #334 from cyberious/WindowsHasInterfacesBug
ENTERPRISE-281 fixes issue with has_interfaces and case mismatch causing...
-rw-r--r--lib/puppet/parser/functions/has_interface_with.rb4
1 files changed, 3 insertions, 1 deletions
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