Skip to content

Commit

Permalink
daemon: remove .snap suffix given to uploaded containers
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewphelpsj committed Dec 20, 2024
1 parent bc60ea4 commit fafbfcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/api_sideload_n_try.go
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ func readForm(reader *multipart.Reader) (_ *Form, apiErr *apiError) {
// its path. If the path is not empty then a file was written and it's the
// caller's responsibility to clean it up (even if the error is non-nil).
func writeToTempFile(reader io.Reader) (path string, err error) {
tmpf, err := os.CreateTemp(dirs.SnapBlobDir, dirs.LocalInstallBlobTempPrefix+"*.snap")
tmpf, err := os.CreateTemp(dirs.SnapBlobDir, dirs.LocalInstallBlobTempPrefix+"*")
if err != nil {
return "", fmt.Errorf("cannot create temp file for form data file part: %v", err)
}
Expand Down

0 comments on commit fafbfcc

Please sign in to comment.