[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-misc
Subject:    Re: Varnish puppet problem
From:       Mattias Geniar <mattias () nucleus ! be>
Date:       2015-07-22 13:03:04
Message-ID: EC064DB7-030E-4D18-9F94-5E8DF619C4A2 () nucleus ! be
[Download RAW message or body]

> 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
_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic