Skip to content

Commit ee66774

Browse files
committed
Fix regression introduced by --show-secrets
1 parent 8e579a6 commit ee66774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff/diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func Manifests(oldIndex, newIndex map[string]*manifest.MappingResult, suppressed
7070
}
7171

7272
func redactSecrets(old, new *manifest.MappingResult) {
73-
if old != nil && old.Kind != "Secret" && new != nil && new.Kind != "Secret" {
73+
if (old != nil && old.Kind != "Secret") || (new != nil && new.Kind != "Secret") {
7474
return
7575
}
7676
serializer := json.NewYAMLSerializer(json.DefaultMetaFactory, scheme.Scheme,

0 commit comments

Comments
 (0)