From d19c3b93f45452700a89ecdfe4795d2ee3338d7f Mon Sep 17 00:00:00 2001 From: Matt Raso-Barnett Date: Tue, 28 May 2019 21:36:18 +0100 Subject: [PATCH] Fix module to work with directory environments This commit should resolve the problem discussed in Issue #15 --- lib/puppet/provider/gnupg_key/gnupg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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