Mac address AND boot params

If you replace
`resource[:macaddrs].each do |macaddr|`
with
`[resource[:macaddrs]].flatten.each do |macaddr|`
does it work?