We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f820bb1 + e96a818 commit b2aed66Copy full SHA for b2aed66
1 file changed
lib/puppet/parser/functions/has_interface_with.rb
@@ -38,8 +38,11 @@ module Puppet::Parser::Functions
38
# Bug with 3.7.1 - 3.7.3 when using future parser throws :undefined_variable
39
# https://tickets.puppetlabs.com/browse/PUP-3597
40
factval = nil
41
- catch :undefined_variable do
42
- factval = lookupvar(kind)
+ begin
+ catch :undefined_variable do
43
+ factval = lookupvar(kind)
44
+ end
45
+ rescue Puppet::ParseError # Eat the exception if strict_variables = true is set
46
end
47
if factval == value
48
return true
0 commit comments