Skip to content

Commit

Permalink
changes per Brian S feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jantman committed Nov 3, 2022
1 parent 7e36f71 commit 8542dc4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/WithAwsPlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class WithAwsPlugin implements TerraformEnvironmentStagePlugin, Resettable {
public Closure addWithAwsRole(String environment) {
return { closure ->
String iamRole = getRole(environment)
Integer sessionDuration = getDuration()
Integer sessionDuration = this.duration

if (iamRole != null) {
withAWS(role: iamRole, duration: sessionDuration) {
Expand Down Expand Up @@ -59,10 +59,6 @@ class WithAwsPlugin implements TerraformEnvironmentStagePlugin, Resettable {
return tempRole
}

public Integer getDuration() {
return this.duration
}

public static void reset() {
this.role = null
this.duration = 3600
Expand Down

0 comments on commit 8542dc4

Please sign in to comment.