HomePhorge

[#4397]+[#4344] Move type-name resolution out of Puppet::Resource into the…
449315a2c705Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

[#4397]+[#4344] Move type-name resolution out of Puppet::Resource into the AST resources.

Move type-name resolution out of Puppet::Resource into the AST resources.
Move find_resource_type out of Puppet::Resource into Scope
Thus, never pass unqualified type names to Puppet::Resource objects.
Thus, Puppet::Resource objects don't need the namespace property,
and Puppet::Resource objects never consult the harddrive to look for
.pp files that might contain their type definitions,
Thus, performance is improved.

Also removes the temporary fix for #4257 that caused #4397
(The code was too eager to look for a class in the topscope)

Paired-With: Paul Berry <paul@puppetlabs.com>
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>

Details

Provenance
Jesse Wolfe <jes5199@gmail.com>Authored on
markus <markus@AVA-351181.(none)>Committed on Aug 4 2010, 12:19 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUdaa801b9ff8c: [#4344] Temporary fix to stop agent from importing modules
Branches
Unknown
Tags
Unknown

Event Timeline