fix: removed resty calls from sync (#1016)

Signed-off-by: Ana-Roberta Lisca <ana.kagome@yahoo.com>
This commit is contained in:
Lisca Ana-Roberta
2022-12-22 20:19:42 +02:00
committed by GitHub
parent 50bdc2f402
commit 14238d4a8d
12 changed files with 820 additions and 568 deletions
+3 -2
View File
@@ -49,6 +49,7 @@ import (
"zotregistry.io/zot/pkg/api"
"zotregistry.io/zot/pkg/api/config"
"zotregistry.io/zot/pkg/api/constants"
"zotregistry.io/zot/pkg/common"
extconf "zotregistry.io/zot/pkg/extensions/config"
"zotregistry.io/zot/pkg/log"
"zotregistry.io/zot/pkg/storage"
@@ -6668,7 +6669,7 @@ func TestDistSpecExtensions(t *testing.T) {
func getAllBlobs(imagePath string) []string {
blobList := make([]string, 0)
if !local.DirExists(imagePath) {
if !common.DirExists(imagePath) {
return []string{}
}
@@ -6713,7 +6714,7 @@ func getAllBlobs(imagePath string) []string {
func getAllManifests(imagePath string) []string {
manifestList := make([]string, 0)
if !local.DirExists(imagePath) {
if !common.DirExists(imagePath) {
return []string{}
}