diff --git a/runtime/v2/shim.go b/runtime/v2/shim.go index 72635144c..76ce6d061 100644 --- a/runtime/v2/shim.go +++ b/runtime/v2/shim.go @@ -211,12 +211,13 @@ func writeBootstrapParams(path string, params client.BootstrapParams) error { if err != nil { return err } - f, err := atomicfile.New(path, 0o666) + + data, err := json.Marshal(¶ms) if err != nil { return err } - data, err := json.Marshal(¶ms) + f, err := atomicfile.New(path, 0o666) if err != nil { return err }