Skip to content

Commit dc1c3e3

Browse files
committed
Delete any existing read-only file
Signed-off-by: Anders F Björklund <[email protected]>
1 parent 2b64f45 commit dc1c3e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/cidata/cidata.go

+1
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,7 @@ func GenerateCloudConfig(instDir, name string, y *limayaml.LimaYAML) error {
347347
return err
348348
}
349349

350+
os.RemoveAll(filepath.Join(instDir, filenames.CloudConfig)) // delete existing
350351
return os.WriteFile(filepath.Join(instDir, filenames.CloudConfig), config, 0o444)
351352
}
352353

0 commit comments

Comments
 (0)