the problem in line https://github.com/stackforge/fuel-astute/blob/master/lib/astute/cobbler_manager.rb#L52 the error_nodes in this case is the reference to nodes_to_remove and any modification of error_list affects the error_nodes as well. that means original list are modified during iteration and the code does not work as expected.
to fix need to change line 52: error_nodes = nodes_to_remove.dup
the problem in line https:/ /github. com/stackforge/ fuel-astute/ blob/master/ lib/astute/ cobbler_ manager. rb#L52
the error_nodes in this case is the reference to nodes_to_remove and any modification of error_list affects the error_nodes as well.
that means original list are modified during iteration and the code does not work as expected.
to fix need to change line 52: error_nodes = nodes_to_remove.dup