File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/main/java/com/dtolabs/rundeck/plugin/resources/ec2 Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 25
25
26
26
import com .amazonaws .ClientConfiguration ;
27
27
import com .amazonaws .auth .AWSCredentials ;
28
- import com .amazonaws .auth .AWSStaticCredentialsProvider ;
29
28
import com .amazonaws .services .ec2 .AmazonEC2 ;
30
- import com .amazonaws .services .ec2 .AmazonEC2ClientBuilder ;
29
+ import com .amazonaws .services .ec2 .AmazonEC2Client ;
31
30
import com .amazonaws .services .ec2 .model .*;
32
31
import com .dtolabs .rundeck .core .common .INodeEntry ;
33
32
import com .dtolabs .rundeck .core .common .NodeEntryImpl ;
@@ -95,9 +94,9 @@ public NodeSetImpl performQuery() {
95
94
96
95
if (ec2 ==null ) {
97
96
if (null != credentials ) {
98
- ec2 = AmazonEC2ClientBuilder . standard (). withCredentials ( new AWSStaticCredentialsProvider (credentials )). withClientConfiguration ( clientConfiguration ). build ( );
97
+ ec2 = new AmazonEC2Client (credentials , clientConfiguration );
99
98
} else {
100
- ec2 = AmazonEC2ClientBuilder . standard (). withClientConfiguration ( clientConfiguration ). build ( );
99
+ ec2 = new AmazonEC2Client ( clientConfiguration );
101
100
}
102
101
}
103
102
You can’t perform that action at this time.
0 commit comments