diff options
author | Hunter Haugen <hunter@puppet.com> | 2017-04-28 15:48:56 -0700 |
---|---|---|
committer | Helen Campbell <helen@puppetlabs.com> | 2017-05-09 12:56:30 +0100 |
commit | 32e5a87bb3b8c1d0fabc1e8c2687e4a750173cb5 (patch) | |
tree | 650626d8705a4d2f39993c0dfbeccd5037c73c57 /lib/puppet | |
parent | 9244c67206363f8e887531b164fc24cef729f3d8 (diff) |
(PE-20308) Also fix defined type strings & references
Diffstat (limited to 'lib/puppet')
-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 7f1fe93..e0d4e37 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::Type.type(type_name) + type = Puppet::Pops::Evaluator::Runtime3ResourceSupport.find_resource_type_or_class(find_global_scope, type_name) elsif reference.is_a?(Puppet::Resource) type = reference.resource_type title = reference.title |