Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PUP-4926) Make it possible to form relationship with 3x resource #4107

Merged

Conversation

hlindberg
Copy link
Contributor

Before this, passing a resource reference as an attribute value resulted in that value not being useful as an operand in a resource expression.

This also corrects a faulty choice of issue leading to an error message with less information.

Before this it was not possible to form a relationship with a 3x
Resource instance. This problem occurs if passing a PResourceType
to a defined type or class. The evaluation transforms the PResourceType
to a Puppet::Pops::Parser::Resource which is given as argument value.

When later, the defined resource (or class) is evaluated, a relationship
could not be formed using this variable.

The problem was that the Relationship Operator implementation did not
transform the Parser::Resource back to a PResourceType - instead it
failed with an error that Resource was not a CatalogEntry.
Before this, the wrong issue was raised for a 'not-catalog-type' in a
relationship operator. This led to an error message with less useful
information.
thallgren added a commit that referenced this pull request Jul 28, 2015
…-resource

(PUP-4926) Make it possible to form relationship with 3x resource
@thallgren thallgren merged commit 292c5f6 into puppetlabs:master Jul 28, 2015
@hlindberg hlindberg deleted the PUP-4926_relationship-with-3x-resource branch July 28, 2015 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants