Attempting to fix JENKINS-15081 , by storing the EC2Cloud that a slave belongs to as an attribute in the EC2Slave class and a function call to retrieve the corresponding EC2Cloud in the EC2Computer class.
Most references of EC2Cloud.get changed to the cloud attribute or getCloud call.