On 10 February 2011 22:15, Mohamed Lrhazi <[email protected]> wrote: > I have this in a template: > > ===============cut here===================== > # Allow ICMP traffic > -A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT > > <% if netbackup_master_servers %> > <% netbackup_master_servers.each do |master_server| -%> > # Allow communication with NetBackup master server <%= master_server[0] %> > -A RH-Firewall-1-INPUT -p tcp -m tcp -s <%= master_server[1] %> > --dport 13724 -j ACCEPT > ===============cut here===================== > > > One extra line containing a single white space is added, after the one > already there. > iptables fails to load because of this... > > Is it the "if" tag that generated the line? how do I avoid that? > > Thanks a lot. > Mohamed. >
Terminating with -%> rather than %> will stop the trailing whitespace. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
