mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-29 21:54:13 +01: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