I changed it to host.compute_resource_id = @compute_resource and it started setting all compute_resource_id's to 1. I reverted it, but if I can get to the bottom of why that happened I can change it again.