mirror of
https://github.com/goharbor/harbor
synced 2025-04-18 19:06:48 +00:00
fix error
This commit is contained in:
parent
04b9ee5cfd
commit
ad7990b07c
|
@ -623,7 +623,7 @@ func (ra *RepositoryAPI) GetSignatures() {
|
|||
//ScanImage handles request POST /api/repository/$repository/tags/$tag/scan to trigger image scan manually.
|
||||
func (ra *RepositoryAPI) ScanImage() {
|
||||
if !config.WithClair() {
|
||||
logger.Warningf("Harbor is not deployed with Clair, scan is disabled.")
|
||||
log.Warningf("Harbor is not deployed with Clair, scan is disabled.")
|
||||
ra.RenderError(http.StatusServiceUnavailable, "")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user