Skip to content

Commit

Permalink
Merge pull request #334 from cyberious/WindowsHasInterfacesBug
Browse files Browse the repository at this point in the history
ENTERPRISE-281 fixes issue with has_interfaces and case mismatch causing...
  • Loading branch information
cmurphy committed Oct 8, 2014
2 parents a44cf3e + 8ad7f68 commit cb6c7d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppet/parser/functions/has_interface_with.rb
Expand Up @@ -34,13 +34,15 @@ module Puppet::Parser::Functions
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
Expand Down

0 comments on commit cb6c7d8

Please sign in to comment.