Skip to content

Commit

Permalink
(FM-7691) use the new capability in resource_api.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS committed Jan 23, 2019
1 parent 5ecffcc commit 9d549c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/resource_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def cache_current_state(resource_hash)
end

define_singleton_method(:context) do
@context ||= PuppetContext.new(definition)
@context ||= PuppetContext.new(TypeDefinition.new(definition))
end

def context
Expand Down

0 comments on commit 9d549c0

Please sign in to comment.