diff --git a/lib/puppet/provider/gnupg_key/gnupg.rb b/lib/puppet/provider/gnupg_key/gnupg.rb index a92f2a8..1c13793 100644 --- a/lib/puppet/provider/gnupg_key/gnupg.rb +++ b/lib/puppet/provider/gnupg_key/gnupg.rb @@ -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