Bug #8997
open^M in multi line parameter
Description
I have a class that takes $custom_routes parameter that is fed to a template:
<% custom_routes.each_line do |val| ->
<= val >
< end -%>
I enter some lines for parameter in foreman:
192.168.0.0/24 via 192.168.128.1
192.168.10.0/24 via 192.168.128.1
192.168.2.0/24 via 192.168.128.1
I get this in the resulting file on the client:
192.168.0.0/24 via 192.168.128.1^M
192.168.10.0/24 via 192.168.128.1^M
192.168.2.0/24 via 192.168.128.1
As a result system init script fails to set up static routes correctly.
First I tought this to be a browser issue (opera), but the same happens in firefox. So it must happen further down the stack, likely somewhere in foreman or maybe in rubys handling of .each_line.
Puppetmaster has ruby 2.0.0 and puppet 3.6.3, client has ruby 1.8.7 and puppet 3.7.1.
Any hints on how to fix / work around this?