Skip to content

Commit 1231ed3

Browse files
authored
Merge pull request #153 from thin-edge/fix-env-variable-filter
fix: fix env variable filter which would ignore the exclude patterns
2 parents 370f4d3 + 33eb956 commit 1231ed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/container/container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ func FilterEnvVariables(l []string, exclude []string) []string {
14671467
ignore := false
14681468
for _, excludePattern := range exclude {
14691469
if strings.HasPrefix(envItem, excludePattern) {
1470-
ignore = false
1470+
ignore = true
14711471
break
14721472
}
14731473
}

0 commit comments

Comments
 (0)