mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-27 21:12:42 +02:00
Merge pull request #12649 from chlins/fix/prheat-log-display
fix(preheat): fix preheat task log display
This commit is contained in:
commit
dc58271d3e
@ -10,6 +10,7 @@ schemes:
|
||||
basePath: /api/v2.0
|
||||
produces:
|
||||
- application/json
|
||||
- text/plain
|
||||
consumes:
|
||||
- application/json
|
||||
securityDefinitions:
|
||||
@ -1145,6 +1146,10 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: Get log success
|
||||
headers:
|
||||
Content-Type:
|
||||
description: Content type of response
|
||||
type: string
|
||||
schema:
|
||||
type: string
|
||||
'400':
|
||||
|
@ -679,7 +679,7 @@ func (api *preheatAPI) GetLog(ctx context.Context, params operation.GetLogParams
|
||||
return api.SendError(ctx, err)
|
||||
}
|
||||
|
||||
return operation.NewGetLogOK().WithPayload(string(l))
|
||||
return operation.NewGetLogOK().WithPayload(string(l)).WithContentType("text/plain")
|
||||
}
|
||||
|
||||
// ListProvidersUnderProject is Get all providers at project level
|
||||
|
Loading…
Reference in New Issue
Block a user