diff options
author | Thomas Hallgren <thomas@tada.se> | 2017-06-14 10:34:13 +0200 |
---|---|---|
committer | Thomas Hallgren <thomas@tada.se> | 2017-06-14 10:34:13 +0200 |
commit | 7b8b9f8aff906460dcac5d84ef8f44449b8ce395 (patch) | |
tree | f5e3afc1971914d7505d3b5aae462ebc49fc5475 /lib | |
parent | 1e0fd136136f32bd1b62e203a9339b4f43b08fa7 (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.rb | 2 |
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 |