Skip to content

Commit

Permalink
Fixed an interesting bug. The following line does not do what many wo…
Browse files Browse the repository at this point in the history
…uld expect: (#26)
  • Loading branch information
davealden authored and jsok committed Feb 19, 2017
1 parent 26189bc commit a5ae9a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/hiera/backend/vault_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ def initialize()
begin
@vault = Vault::Client.new
@vault.configure do |config|
config.address = @config[:addr] if @config[:addr]
config.token = @config[:token] if @config[:token]
config.ssl_pem_file = @config[:ssl_pem_file] if @config[:ssl_pem_file]
config.ssl_verify = @config[:ssl_verify] if @config[:ssl_verify]
config.address = @config[:addr] unless @config[:addr].nil?
config.token = @config[:token] unless @config[:token].nil?
config.ssl_pem_file = @config[:ssl_pem_file] unless @config[:ssl_pem_file].nil?
config.ssl_verify = @config[:ssl_verify] unless @config[:ssl_verify].nil?
config.ssl_ca_cert = @config[:ssl_ca_cert] if config.respond_to? :ssl_ca_cert
config.ssl_ca_path = @config[:ssl_ca_path] if config.respond_to? :ssl_ca_path
config.ssl_ciphers = @config[:ssl_ciphers] if config.respond_to? :ssl_ciphers
Expand Down

0 comments on commit a5ae9a8

Please sign in to comment.