Skip to content

Commit e6ca106

Browse files
authored
fix: set cache defaults for parser stash (#3883)
1 parent 6c9c836 commit e6ca106

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/parser/node.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ func (n *Node) validate(ectx EnricherCtx) error {
112112
}
113113
}
114114

115-
for idx, stash := range n.Stash {
115+
for idx:= range n.Stash {
116+
// pointer not value, to avoid throwing away the defaults
117+
stash := &n.Stash[idx]
118+
116119
if stash.Name == "" {
117120
return fmt.Errorf("stash %d : name must be set", idx)
118121
}

0 commit comments

Comments
 (0)