Skip to content

Commit

Permalink
[aws/sts_provisioner.go] Remove unused hasRegion
Browse files Browse the repository at this point in the history
Now not used by the error check below, so removing.
  • Loading branch information
NickLaMuro committed Aug 5, 2024
1 parent 3aa020c commit c743f7f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/aws/sts_provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,6 @@ func resolveLocalAnd1PasswordConfigurations(itemFields map[sdk.FieldName]string,
region = defaultRegion
}

hasRegion := hasDefaultRegion || hasRegularRegion

// only 1Password OTPs are supported
if awsConfig.MfaToken != "" || awsConfig.MfaProcess != "" || awsConfig.MfaPromptMethod != "" {
return fmt.Errorf("only 1Password-backed OTP authentication is supported by the MFA worklfow of the AWS shell plugin")
Expand Down

0 comments on commit c743f7f

Please sign in to comment.