Maybe try a `.map` instead and assign the result? ...
# puppet
a
Maybe try a
.map
instead and assign the result? Something like
Copy code
$_all_isps = $isp_vlans.map |$isp, $vlan| {
  {
    'vlan' => $vlan,
    'ip'   => lookup("inet${vlan}_ip", Optional[Stdlib::IP::Address::V4::Nosubnet], 'first', undef),
  }
}