mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-02 07:03:35 +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.
|
//ScanImage handles request POST /api/repository/$repository/tags/$tag/scan to trigger image scan manually.
|
||||||
func (ra *RepositoryAPI) ScanImage() {
|
func (ra *RepositoryAPI) ScanImage() {
|
||||||
if !config.WithClair() {
|
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, "")
|
ra.RenderError(http.StatusServiceUnavailable, "")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user