mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
fix(preheat): fix preheat task log display
Signed-off-by: chlins <chlins.zhang@gmail.com>
This commit is contained in:
parent
3d3fabbd20
commit
b008dffe70
@ -10,6 +10,7 @@ schemes:
|
|||||||
basePath: /api/v2.0
|
basePath: /api/v2.0
|
||||||
produces:
|
produces:
|
||||||
- application/json
|
- application/json
|
||||||
|
- text/plain
|
||||||
consumes:
|
consumes:
|
||||||
- application/json
|
- application/json
|
||||||
securityDefinitions:
|
securityDefinitions:
|
||||||
@ -1145,6 +1146,10 @@ paths:
|
|||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Get log success
|
description: Get log success
|
||||||
|
headers:
|
||||||
|
Content-Type:
|
||||||
|
description: Content type of response
|
||||||
|
type: string
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
'400':
|
'400':
|
||||||
|
@ -679,7 +679,7 @@ func (api *preheatAPI) GetLog(ctx context.Context, params operation.GetLogParams
|
|||||||
return api.SendError(ctx, err)
|
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
|
// ListProvidersUnderProject is Get all providers at project level
|
||||||
|
Loading…
Reference in New Issue
Block a user