Skip to content

Commit

Permalink
Fix module to work with directory environments
Browse files Browse the repository at this point in the history
This commit should resolve the problem discussed in Issue dgolja#15
  • Loading branch information
mjrasobarnett committed May 28, 2019
1 parent 9a8f1cd commit d19c3b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/provider/gnupg_key/gnupg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def create_temporary_file user_id, content
def puppet_content
# Look up (if necessary) and return remote content.
return @content if @content
unless tmp = Puppet::FileServing::Content.indirection.find(resource[:key_source], :environment => resource.catalog.environment, :links => :follow)
unless tmp = Puppet::FileServing::Content.indirection.find(resource[:key_source], :environment => resource.catalog.environment_instance, :links => :follow)
fail "Could not find any content at %s" % resource[:key_source]
end
@content = tmp.content
Expand Down

0 comments on commit d19c3b9

Please sign in to comment.