Skip to content

Commit

Permalink
fix: avoid duplicates when creating new image from existing image
Browse files Browse the repository at this point in the history
fixes #168
  • Loading branch information
activeshadow committed Feb 26, 2024
1 parent 224cd36 commit 8acde67
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/go/api/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,6 @@ func CreateFromConfig(name, saveas string, overlays, packages, scripts []string)
return fmt.Errorf("decoding image spec: %w", err)
}

if err := SetDefaults(&img); err != nil {
return fmt.Errorf("setting image defaults: %w", err)
}

c.Metadata.Name = saveas

if len(overlays) > 0 {
Expand Down

0 comments on commit 8acde67

Please sign in to comment.