Skip to content

Commit

Permalink
Merge pull request #78 from mougams/fix_consul_lib
Browse files Browse the repository at this point in the history
Fix consul lib
  • Loading branch information
jeremy-clerc authored Jan 15, 2025
2 parents a6c0ed4 + 4eb70e2 commit 4b2e25b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/consul.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.setup_consul(options)

if Diplomat::VERSION < '2.1.0'
Diplomat.configure do |config|
config.acl_token = @options[:consul_token]
config.acl_token = options[:consul_token]
end
else
options[:token] = options[:consul_token]
Expand All @@ -24,7 +24,7 @@ def self.update_backup_url(options)
return unless options[:consul_backup_url]

Diplomat.configure do |config|
config.url = @options[:consul_backup_url]
config.url = options[:consul_backup_url]
end
end

Expand Down

0 comments on commit 4b2e25b

Please sign in to comment.