summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/seeded_rand.rb
diff options
context:
space:
mode:
authorMaksym Melnychok <keymone@gmail.com>2016-10-06 16:36:29 +0200
committerDavid Schmitt <david.schmitt@puppet.com>2016-10-08 16:14:19 +0100
commitf6bd01b784d279d477f327e5da76f3c27fcf4156 (patch)
tree7125521e55a5fe75c312c32a3fe6211b99436e44 /lib/puppet/parser/functions/seeded_rand.rb
parent527a4f1ebc21276458427fc5787a621fa8d5cb67 (diff)
Ignore :undefined_variable "reason" in getvar
`catch` returns value of second argument to `throw`, which until 860a2761f334c964068038b3ef6853f08beb1df5 was `nil`, but now is non-falsey reason for error. short-circuit using return and eval to nil if `throw` was caught.
Diffstat (limited to 'lib/puppet/parser/functions/seeded_rand.rb')
0 files changed, 0 insertions, 0 deletions