You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a requirement to add empty controller group resources under cgconf.d directory but from template ( templates/group.conf.erb ) could see no condition to achieve that .
So we modified the template to include if condition such that it will execute the each condition only when there is params variable available.
++++++++
<% if @params -%>
<% params.sort.each do |p,v| -%>
<%= p %> = <%= v %>;
<% end -%>
<% end -%>
}
<% end -%>
+++++++++
Can you please evaluate and add to the source code if you find our solutions works for you ?
Regards,
Nandha
The text was updated successfully, but these errors were encountered:
Hi ,
We have a requirement to add empty controller group resources under cgconf.d directory but from template ( templates/group.conf.erb ) could see no condition to achieve that .
So we modified the template to include if condition such that it will execute the each condition only when there is params variable available.
++++++++
<% if @params -%>
<% params.sort.each do |p,v| -%>
<%= p %> = <%= v %>;
<% end -%>
<% end -%>
}
<% end -%>
+++++++++
Can you please evaluate and add to the source code if you find our solutions works for you ?
Regards,
Nandha
The text was updated successfully, but these errors were encountered: