-
Notifications
You must be signed in to change notification settings - Fork 41
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
Find a way to pass information from the manifest to the get
method.
#242
Comments
get
method.get
method.
I don't need full manifest information, but I would love the My use case is the |
my use case above does not apply here after all. I misunderstood that |
Edited the description with a possible implementation path. |
Implemented in #284 |
This commit updates the BaseContext class initialization method to take a second argument, catalog (default to nil), which ensures that the @catalog instance variable is populated with the value passed. It also updates the context method in resource_api to pass the catalog to that initializer if specified, or pass nil if not. This does not add unit or acceptance tests for the behavior.
This commit updates the BaseContext class initialization method to take a second argument, catalog (default to nil), which ensures that the @catalog instance variable is populated with the value passed. It also updates the context method in resource_api to pass the catalog to that initializer if specified, or pass nil if not. This does not add unit or acceptance tests for the behavior.
Example for how this is currently used/implemented:
https://github.com/puppetlabs/puppetlabs-sqlserver/blob/b36eecf3fdadb3d45c9691fcac2e92c66fa3ad30/lib/puppet/provider/sqlserver_tsql/mssql.rb#L16-L26
Puppet::Type
'sresource.catalog.resources
provides access to other resources in the current catalog.Possible implementation:
raw_catalog_access
feature flag topuppet-resource_api/lib/puppet/resource_api/type_definition.rb
Line 37 in bd93dba
catalog
accessor topuppet-resource_api/lib/puppet/resource_api/base_context.rb
Line 13 in bd93dba
resource.catalog
to context every time one is created iff theraw_catalog_access
feature is declared on the type definitionpuppet-resource_api/lib/puppet/resource_api.rb
Lines 428 to 434 in bd93dba
resource.catalog
is not available at the class levelpuppet-resource_api/lib/puppet/resource_api/io_context.rb
Line 8 in bd93dba
The text was updated successfully, but these errors were encountered: