Skip to content

Commit

Permalink
create-spec: fix platform to be correctly recognized
Browse files Browse the repository at this point in the history
Signed-off-by: Kohei Tokunaga <[email protected]>
  • Loading branch information
ktock committed Jan 16, 2024
1 parent b3e4d92 commit 7914566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/create-spec/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func unpack(ctx context.Context, imgDir string, platform *spec.Platform, rootfs
return nil, err
}
var platformMC platforms.MatchComparer
if platformMC != nil {
if platform != nil {
platformMC = platforms.Only(*platform)
}
return unpackOCI(ctx, imgDir, platformMC, rootfs, idx.Manifests)
Expand Down

0 comments on commit 7914566

Please sign in to comment.