diff --git a/app/models/vm_or_template.rb b/app/models/vm_or_template.rb index ae390fe1969..54d461d456c 100644 --- a/app/models/vm_or_template.rb +++ b/app/models/vm_or_template.rb @@ -1137,7 +1137,7 @@ def self.post_refresh_ems(ems_id, update_start_time) # Create queue items to do additional process like apply tags and link events unless added_vms.empty? added_vm_ids = [] - added_vms.each do |v| + added_vms.find_each do |v| v.post_create_actions_queue added_vm_ids << v.id end