lib/consul/async/consul_template.rb in consul-templaterb-1.33.0 vs lib/consul/async/consul_template.rb in consul-templaterb-1.33.1
- old
+ new
@@ -398,11 +398,12 @@
def create_if_missing(path, query_params, fail_fast_errors: @fail_fast_errors,
max_consecutive_errors_on_endpoint: @max_consecutive_errors_on_endpoint,
agent: nil, endpoint_id: nil)
endpoint_id ||= begin
fqdn = path.dup
+ fqdn = "#{agent}#{fqdn}"
query_params.each_pair do |k, v|
- fqdn = "#{agent}#{fqdn}&#{k}=#{v}"
+ fqdn += "&#{k}=#{v}"
end
fqdn
end
tpl = @endpoints[endpoint_id]
unless tpl