We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0efbb9 commit 2fd36daCopy full SHA for 2fd36da
lib/puppet/resource_api.rb
@@ -430,8 +430,7 @@ def strict_check_title_parameter(current_state)
430
end
431
432
def context
433
- self.class.context.catalog = @catalog if type_definition.feature?('raw_catalog_access')
434
- self.class.context
+ @context ||= PuppetContext.new(TypeDefinition.new(definition), type_definition.feature?('raw_catalog_access') ? @catalog : nil)
435
436
437
def self.title_patterns
0 commit comments