Skip to content

Commit 2fd36da

Browse files
author
kreeuwijk
committed
ensure read-only catalog access
1 parent a0efbb9 commit 2fd36da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/puppet/resource_api.rb

+1-2
Original file line numberDiff line numberDiff line change
@@ -430,8 +430,7 @@ def strict_check_title_parameter(current_state)
430430
end
431431

432432
def context
433-
self.class.context.catalog = @catalog if type_definition.feature?('raw_catalog_access')
434-
self.class.context
433+
@context ||= PuppetContext.new(TypeDefinition.new(definition), type_definition.feature?('raw_catalog_access') ? @catalog : nil)
435434
end
436435

437436
def self.title_patterns

0 commit comments

Comments
 (0)