Skip to content

Commit

Permalink
Fix incorrect Diplomat arguments
Browse files Browse the repository at this point in the history
- this method doesn't have keyword arguments, so the parameters were being interpreted as the options hash
  • Loading branch information
aharpervc committed Oct 3, 2023
1 parent 2bad9b0 commit ac19c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/consult/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def contents

def consul_contents(location)
[@config[location]].compact.flatten.map do |key|
Diplomat::Kv.get(key, options: {}, not_found: :return, found: :return).force_encoding 'utf-8'
Diplomat::Kv.get(key, {}, :return, :return).force_encoding 'utf-8'
end.join
end

Expand Down

0 comments on commit ac19c85

Please sign in to comment.