summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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