cloudapi: Add UploadTypesLocal for local_save status reports

This allows the compose status to reflect that it was saved locally, not
uploaded to a remote service. Without this it returns an error of
'Compose has unknown upload target'
This commit is contained in:
Brian C. Lane 2024-03-25 11:59:58 -07:00 committed by Brian C. Lane
parent 8dece19342
commit 66c5c5ecf9
3 changed files with 27 additions and 21 deletions

View file

@ -294,6 +294,8 @@ func targetResultToUploadStatus(t *target.TargetResult) (*UploadStatus, error) {
uploadOptions = PulpOSTreeUploadStatus{
RepoUrl: pulpOSTreeOptions.RepoURL,
}
case target.TargetNameWorkerServer:
uploadType = UploadTypesLocal
default:
return nil, fmt.Errorf("unknown upload target: %s", t.Name)
}