Skip to content

Commit 4aefffe

Browse files
Update cloudprofilesync/source.go
Co-authored-by: Dmitri Fedotov <13087245+defo89@users.noreply.github.com>
1 parent e78867e commit 4aefffe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cloudprofilesync/source.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,5 +194,8 @@ func (o *OCI) GetVersions(ctx context.Context) ([]SourceImage, error) {
194194
}
195195
images = append(images, result.value)
196196
}
197+
if len(images) == 0 && len(tags) > 0 {
198+
return nil, fmt.Errorf("all %d tags were skipped; possible registry issue", len(tags))
199+
}
197200
return images, errors.Join(errs...)
198201
}

0 commit comments

Comments
 (0)