Details
Description
The Puppet::Resource::Puppetdb#search method creates a new Resource by passing the resource type in string format. This is problematic since that string might be resolved by loading a Ruby resource type. This is a potential source of conflicts when puppet generate types is used and the root cause of the error reported in PUP-8002.
In other places of puppet the code is changed to instead load the resource type using the Puppet::Pops::Evaluator::Runtime3ResourceSupport#find_resource_type method, thus
preventing the Ruby type from being loaded.
Attachments
Issue Links
- blocks
-
PUP-8002 "Attempt to redefine entity" caused by using a resource collector
-
- Closed
-