This should work. It doesn’t, because filter called on a ResultSet returns an array.
{code}
# Identify those nodes that need to be rebooted. $reboot_targets = $patch_results.ok_set.filter |$result| { $result['reboot_flag'] == true }.targets
{code}
Make a new method, {{.filterfilter_set}}, which when called on a ResultSet return returns a ResultSet. Making a new method instead of just fixing {{.filter}} because of concerns over breaking / backwards incompatible changes.