Skip to content

Commit

Permalink
Forward compatibility with jenkinsci/ec2-plugin#1027 (#2611)
Browse files Browse the repository at this point in the history
  • Loading branch information
basil authored Dec 21, 2024
1 parent 26dbcf2 commit bbf59a2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import com.amazonaws.services.ec2.model.InstanceType;
import hudson.model.labels.LabelAtom;
import hudson.plugins.ec2.AMITypeData;
import hudson.plugins.ec2.AmazonEC2Cloud;
import hudson.plugins.ec2.EC2Cloud;
import hudson.plugins.ec2.SlaveTemplate;
import hudson.plugins.ec2.UnixData;
import io.jenkins.plugins.casc.misc.ConfiguredWithReadme;
Expand All @@ -31,7 +31,7 @@ public class EC2CloudTest {
@Test
@ConfiguredWithReadme("ec2/README.md")
public void configure_ec2_cloud() {
final AmazonEC2Cloud ec2Cloud = (AmazonEC2Cloud) Jenkins.get().getCloud("ec2");
final EC2Cloud ec2Cloud = (EC2Cloud) Jenkins.get().getCloud("ec2");
assertNotNull(ec2Cloud);

assertTrue(ec2Cloud.isUseInstanceProfileForCredentials());
Expand Down

0 comments on commit bbf59a2

Please sign in to comment.