Skip to content

Commit

Permalink
Merge pull request #76 from criteo-cookbooks/token-parameter-bugfix
Browse files Browse the repository at this point in the history
Fix wrong parameter given for consul token
  • Loading branch information
jlundqvist-criteo authored Oct 21, 2024
2 parents d483d5d + 9c18dea commit 486ce7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/primitive_consul_lock.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def self.get_or_create(path, concurrency:, **kwargs)
value = Mash.new({ version: 1, concurrency: concurrency, holders: {} })
current_lock = begin
Chef::Log.info "Fetch lock state for #{path}"
Diplomat::Kv.get(path, decode_values: true, dc: dc, token: dc)
Diplomat::Kv.get(path, decode_values: true, dc: dc, token: token)
rescue Faraday::ConnectionFailed => e
retry_secs = 30
Chef::Log.info "Consul did not respond, wait #{retry_secs} seconds and retry to let it (re)start: #{e}"
Expand Down

0 comments on commit 486ce7a

Please sign in to comment.