Skip to content

Commit

Permalink
Update for rebase against master
Browse files Browse the repository at this point in the history
  • Loading branch information
troymohl committed May 21, 2020
1 parent 783ae35 commit 7460bfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/java/hudson/plugins/ec2/SpotConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public String getDisplayName() {
*/
@RequirePOST
public FormValidation doCurrentSpotPrice(@QueryParameter boolean useInstanceProfileForCredentials,
@QueryParameter String credentialsId, @QueryParameter String region,
@QueryParameter String credentialsId, @QueryParameter String altEC2Endpoint, @QueryParameter String region,
@QueryParameter String type, @QueryParameter String zone, @QueryParameter String roleArn,
@QueryParameter String roleSessionName, @QueryParameter String ami) throws IOException, ServletException {

Expand All @@ -145,8 +145,8 @@ public FormValidation doCurrentSpotPrice(@QueryParameter boolean useInstanceProf

// Connect to the EC2 cloud with the access id, secret key, and
// region queried from the created cloud
AWSCredentialsProvider credentialsProvider = EC2Cloud.createCredentialsProvider(useInstanceProfileForCredentials, credentialsId, roleArn, roleSessionName, region);
AmazonEC2 ec2 = AmazonEC2Factory.getInstance().connect(credentialsProvider, AmazonEC2Cloud.getEc2EndpointUrl(region));
AWSCredentialsProvider credentialsProvider = EC2Cloud.createCredentialsProvider(useInstanceProfileForCredentials, credentialsId, roleArn, roleSessionName, altEC2Endpoint, region);
AmazonEC2 ec2 = AmazonEC2Factory.getInstance().connect(credentialsProvider, AmazonEC2Cloud.getEc2EndpointUrl(altEC2Endpoint, region));

if (ec2 != null) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ THE SOFTWARE.
</f:entry>

<f:optionalBlock name="useBidPrice" title="Set bid price" inline="true" checked="${h.defaultToTrue(instance.useBidPrice)}" field="useBidPrice">
<f:validateButton title="${%Check Current Spot Price}" progress="${%Checking...}" method="currentSpotPrice" with="useInstanceProfileForCredentials,credentialsId,region,type,zone,roleArn,roleSessionName,ami" />
<f:validateButton title="${%Check Current Spot Price}" progress="${%Checking...}" method="currentSpotPrice" with="useInstanceProfileForCredentials,credentialsId,altEC2Endpoint,region,type,zone,roleArn,roleSessionName,ami" />
<f:entry title="${%Spot Max Bid Price}" field="spotMaxBidPrice">
<f:textbox />
</f:entry>
Expand Down

0 comments on commit 7460bfd

Please sign in to comment.