Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add check for append when working with non-manifestlists but set --ke…
…ep-manifest-list flag
  • Loading branch information
soltysh committed May 6, 2022
commit cb1b742736616a01279965b78b1ce89c92f69e6c
2 changes: 1 addition & 1 deletion pkg/cli/image/append/append.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (o *AppendImageOptions) Run() error {
return fmt.Errorf("unable to read image %s: %v", from, err)
}

if o.KeepManifestList {
if _, ok := srcManifest.(*manifestlist.DeserializedManifestList); ok && o.KeepManifestList {
return o.appendManifestList(ctx, createdAt, from, to, repo, srcManifest, manifestLocation, toRepo, toManifests)
}
}
Expand Down