Skip to content
Snippets Groups Projects
Commit 260d2565 authored by Thomas Bellman's avatar Thomas Bellman
Browse files

rh_interface: Minor code prettification in ERB template.

This was originally commit 13a0b28c0f55 in nsc-puppet-utils.
parent 4421c300
No related branches found
No related tags found
No related merge requests found
......@@ -53,10 +53,10 @@
;
when 'static'
params['BOOTPROTO'] = @bootproto
v4addresses.each_with_index do |v4spec,i|
v4addresses.each_with_index do |(v4addr,v4mask),i|
ii = (i == 0) ? '' : i.to_s
params['IPADDR' + ii] = v4spec[0]
params['NETMASK' + ii] = v4spec[1]
params['IPADDR' + ii] = v4addr
params['NETMASK' + ii] = v4mask
end
when 'dhcp'
params['BOOTPROTO'] = @bootproto
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment