HomePhorge

(#4534/#4778) -- Normalize parameterized classes
65ef24e5c1c3Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#4534/#4778) -- Normalize parameterized classes

This is a reconciliation/melding of Paul's

(#4534) Class inheritance with parameterized classes is no longer ignored

and Markus's

Fix for #4778 -- evaluate parameterized classes when they are instantiated

Extracted the code from Resource::Type#mk_plain_resource that evaluates
parents and tags the catalog, and moved that into a new method called
instantiate_resource. Instantiate_resource is now also called from
Parser::Ast::Resource#evaluate, so that the notation

"class { classname: }"

now executes this code too. Likewise adds class evaluation so that it behaves
the same (with regard to lazy / strict evaluation) as

include classname

Details

Provenance
Paul Berry <paul@puppetlabs.com>Authored on
Markus Roberts <Markus@reality.com>Committed on Oct 27 2010, 11:25 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU3b53bfcd0dd2: Fix for #5022 -- Escaped newlines should be elided
Branches
Unknown
Tags
Unknown

Event Timeline

Markus Roberts <Markus@reality.com> committed rPU65ef24e5c1c3: (#4534/#4778) -- Normalize parameterized classes (authored by Paul Berry <paul@puppetlabs.com>).Oct 27 2010, 11:25 PM