Skip to content

Commit

Permalink
Don't require soci index digest label
Browse files Browse the repository at this point in the history
Signed-off-by: Kern Walster <walster@amazon.com>
  • Loading branch information
Kern-- authored and turan18 committed Jul 17, 2023
1 parent 73d7188 commit 727fa8c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,9 @@ func (fs *filesystem) Mount(ctx context.Context, mountpoint string, labels map[s
start := time.Now()
ctx = log.WithLogger(ctx, log.G(ctx).WithField("mountpoint", mountpoint))

sociIndexDigest, ok := labels[source.TargetSociIndexDigestLabel]
if !ok {
return fmt.Errorf("unable to get soci index digest from labels")
}
// If this is empty or the label doesn't exist, then we will use the referrers API later
// to get find an index digest.
sociIndexDigest := labels[source.TargetSociIndexDigestLabel]
imageRef, ok := labels[ctdsnapshotters.TargetRefLabel]
if !ok {
return fmt.Errorf("unable to get image ref from labels")
Expand Down

0 comments on commit 727fa8c

Please sign in to comment.