From f96efa08a616e945c9850d7e1b838aff7d44ff28 Mon Sep 17 00:00:00 2001 From: omer-topal Date: Tue, 5 May 2026 22:55:27 +0300 Subject: [PATCH] fix: bundle test panic --- pkg/bundle/bundle.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/bundle/bundle.go b/pkg/bundle/bundle.go index 6ead70cee..f6aa21667 100644 --- a/pkg/bundle/bundle.go +++ b/pkg/bundle/bundle.go @@ -19,7 +19,7 @@ func Operation(arguments map[string]string, operation *base.Operation) (tb datab // Iterate over each write operation. for _, w := range rWrites { // Parse the write operation string into a template. - tmpl, err := template.New("template").Parse(w) + tmpl, err := template.New("template").Option("missingkey=zero").Parse(w) if err != nil { return tb, ab, err } @@ -55,7 +55,7 @@ func Operation(arguments map[string]string, operation *base.Operation) (tb datab // Iterate over each delete operation. for _, w := range rDeletes { // Parse the write operation string into a template. - tmpl, err := template.New("template").Parse(w) + tmpl, err := template.New("template").Option("missingkey=zero").Parse(w) if err != nil { return tb, ab, err } @@ -91,7 +91,7 @@ func Operation(arguments map[string]string, operation *base.Operation) (tb datab // Iterate over each write operation. for _, w := range aWrites { // Parse the write operation string into a template. - tmpl, err := template.New("template").Parse(w) + tmpl, err := template.New("template").Option("missingkey=zero").Parse(w) if err != nil { return tb, ab, err } @@ -127,7 +127,7 @@ func Operation(arguments map[string]string, operation *base.Operation) (tb datab // Iterate over each delete operation. for _, w := range aDeletes { // Parse the write operation string into a template. - tmpl, err := template.New("template").Parse(w) + tmpl, err := template.New("template").Option("missingkey=zero").Parse(w) if err != nil { return tb, ab, err }