Skip to content

Commit bae6be7

Browse files
Wrapped in AWS_ prefix check.
Co-authored-by: danmoz <danmoz@users.noreply.github.com>
1 parent ff824e4 commit bae6be7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎test/e2e/e2e_test.go‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,7 @@ func cleanAWSEnvironment(environment []string) []string {
216216
clean := make([]string, 0, len(environment)+8)
217217
for _, value := range environment {
218218
key, _, _ := strings.Cut(value, "=")
219-
switch key {
220-
case "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_SESSION_TOKEN", "AWS_REGION",
221-
"AWS_PROFILE", "AWS_DEFAULT_PROFILE", "AWS_CONFIG_FILE", "AWS_SHARED_CREDENTIALS_FILE":
219+
if strings.HasPrefix(key, "AWS_") {
222220
continue
223221
}
224222
clean = append(clean, value)

0 commit comments

Comments
 (0)