Varnish puppet problem
Mattias Geniar
mattias at nucleus.be
Wed Jul 22 15:03:04 CEST 2015
> Detail: undefined method `map' for "/request":String
The problem isn't Varnish, it's actually within Puppet/Ruby.
You are passing along a string parameter with the value "/request" and are using an Array method ".map" on it. The "@health_check_request.map" method is only valid for Arrays, not Strings.
Assuming you actually meant to pass along a String, the following should work:
<% if @health_check_request -%>
.request = "<%= @health_check_request %>";
<% else -%>
If not, check your input, make sure you're passing along an Array and not a String.
Mattias
More information about the varnish-misc
mailing list