Skip to content

Commit cb6c7d8

Browse files
committed
Merge pull request #334 from cyberious/WindowsHasInterfacesBug
ENTERPRISE-281 fixes issue with has_interfaces and case mismatch causing...
2 parents a44cf3e + 8ad7f68 commit cb6c7d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/puppet/parser/functions/has_interface_with.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ module Puppet::Parser::Functions
3434
end
3535

3636
kind, value = args
37-
37+
kind.downcase!
38+
3839
if lookupvar(kind) == value
3940
return true
4041
end
4142

4243
result = false
4344
interfaces.each do |iface|
45+
iface.downcase!
4446
if value == lookupvar("#{kind}_#{iface}")
4547
result = true
4648
break

0 commit comments

Comments
 (0)