Skip to content

Commit 33eb956

Browse files
committed
fix env variable filter which would ignore the exclude patterns
1 parent 24ef5b3 commit 33eb956

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)