From 2d45c84c9abae883359cad45afe1999f556e0b2b Mon Sep 17 00:00:00 2001 From: Nick LaMuro Date: Mon, 5 Aug 2024 19:58:45 -0400 Subject: [PATCH] [aws/sts_provisioner.go] Remove hasRegion Now not used by the error check below, so removing. --- plugins/aws/sts_provisioner.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/aws/sts_provisioner.go b/plugins/aws/sts_provisioner.go index db6f18c9..3a53683b 100644 --- a/plugins/aws/sts_provisioner.go +++ b/plugins/aws/sts_provisioner.go @@ -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")