summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Hallgren <thomas@tada.se>2017-06-14 10:34:13 +0200
committerThomas Hallgren <thomas@tada.se>2017-06-14 10:34:13 +0200
commit7b8b9f8aff906460dcac5d84ef8f44449b8ce395 (patch)
treef5e3afc1971914d7505d3b5aae462ebc49fc5475 /lib
parent1e0fd136136f32bd1b62e203a9339b4f43b08fa7 (diff)
(MODULES-5095) Workaround for PUP-7650
This commit adds a simple workaround for the problem described in PUP-7650. The workaround is harmless and can remain in place regardless of if the fix for PUP-7650 is in place or not.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/parser/functions/defined_with_params.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/defined_with_params.rb b/lib/puppet/parser/functions/defined_with_params.rb
index e0d4e37..c45a9df 100644
--- a/lib/puppet/parser/functions/defined_with_params.rb
+++ b/lib/puppet/parser/functions/defined_with_params.rb
@@ -29,7 +29,7 @@ ENDOFDOC
# Workaround for PE-20308
if reference.is_a?(String)
type_name, title = Puppet::Resource.type_and_title(reference, nil)
- type = Puppet::Pops::Evaluator::Runtime3ResourceSupport.find_resource_type_or_class(find_global_scope, type_name)
+ type = Puppet::Pops::Evaluator::Runtime3ResourceSupport.find_resource_type_or_class(find_global_scope, type_name.downcase)
elsif reference.is_a?(Puppet::Resource)
type = reference.resource_type
title = reference.title