jenkinsci/ec2-plugin — pull request #46 by rsennewald (2013-04-24 23:00:28+00:00)
Title: Fix to allow multiple EC2Clouds (fix for JENKINS-15081)

Fix for JENKINS-15081. We store the EC2Cloud that a slave belongs to as an attribute in the EC2Slave class and have a function call to retrieve it in EC2Computer.

All references to EC2Cloud.get changed to EC2Slave.cloud or EC2Computer.getCloud().

This fix allows for us to always know the correct Cloud that an EC2Slave or EC2Computer belongs to so we can have multiple EC2Clouds configured on one Jenkins instance and have different templates for different clouds and have the instances for each spin up properly.