Skip to content

Commit

Permalink
Merge pull request #987 from stgraber/main
Browse files Browse the repository at this point in the history
incus-simplestreams: Fix split images
  • Loading branch information
hallyn authored Jul 12, 2024
2 parents 180e9b0 + 6eb6f74 commit b47c135
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/incus-simplestreams/main_add.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ type dataItem struct {

// parseImage parses the metadata and data, filling the dataItem struct.
func (c *cmdAdd) parseImage(metaFile *os.File, dataFile *os.File) (*dataItem, error) {
item := dataItem{}
item := dataItem{
Path: dataFile.Name(),
}

// Read the header.
_, extension, _, err := archive.DetectCompressionFile(dataFile)
Expand Down

0 comments on commit b47c135

Please sign in to comment.