summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelen <helen@puppetlabs.com>2017-06-14 10:57:28 +0100
committerGitHub <noreply@github.com>2017-06-14 10:57:28 +0100
commitfb4b2c75210c50974025689d81b08cd6bc9c475f (patch)
treef5e3afc1971914d7505d3b5aae462ebc49fc5475
parent1e0fd136136f32bd1b62e203a9339b4f43b08fa7 (diff)
parent7b8b9f8aff906460dcac5d84ef8f44449b8ce395 (diff)
Merge pull request #780 from thallgren/issue/modules-5095/workaround-pup-7650
(MODULES-5095) Workaround for PUP-7650
-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