cloudapi: Don't return upload type in UploadStatus for now
Upload target type is currently not returned form the worker, but hardcoded in the cloudapi code to always return "aws". This make testing of the cloudapi for other cloud providers quite complicated. Since extending the target status information returned from the worker is currently in progress, work around the situation for now by returning an empty string as the upload type. This will allows other types of upload targets to be tested as part of cloudapi test case. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
31d4d4648f
commit
080b64c12c
2 changed files with 4 additions and 2 deletions
|
|
@ -297,7 +297,7 @@ func (server *Server) ComposeStatus(w http.ResponseWriter, r *http.Request, id s
|
|||
Status: composeStatusFromJobStatus(status, &result),
|
||||
UploadStatus: &UploadStatus{
|
||||
Status: result.UploadStatus,
|
||||
Type: "aws",
|
||||
Type: "", // Do not return the upload for now, since it is not returned from the worker
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue