Skip to content

Commit 8ad7f68

Browse files
author
Travis Fields
committed
ENTERPRISE-281 fixes issue with has_interfaces and case mismatch causing us not to return some interfaces
1 parent a44cf3e commit 8ad7f68

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)