Cloud API: extend a code comment with more information

This commit is contained in:
Tomas Hozza 2022-07-22 15:09:14 +02:00 committed by Tomáš Hozza
parent 0614913010
commit 31072c1189

View file

@ -642,7 +642,9 @@ func (h *apiHandlers) getComposeStatusImpl(ctx echo.Context, id string) error {
}
var us *UploadStatus
// only single upload target in addition to Koji is allowed
// Only a single upload target in addition to Koji is allowed.
// Koji target is always added to osbuild jobs for Koji compose
// by the enqueueKojiCompose() function.
if len(buildJobResult.TargetResults) > 2 {
return HTTPError(ErrorSeveralUploadTargets)
}