Skip to content

Commit

Permalink
Fix proxy error
Browse files Browse the repository at this point in the history
  • Loading branch information
edestecd committed Dec 14, 2016
1 parent 74bc23a commit c76c97d
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 @@ -53,7 +53,7 @@ def add_key
end

def add_key_from_key_server
if resource[:proxy].empty?
if resource[:proxy].nil? or resource[:proxy].empty?
command = "gpg --keyserver #{resource[:key_server]} --recv-keys #{resource[:key_id]}"
else
command = "gpg --keyserver #{resource[:key_server]} --keyserver-options http-proxy=#{resource[:proxy]} --recv-keys #{resource[:key_id]}"
Expand Down

0 comments on commit c76c97d

Please sign in to comment.