From f5709b285a553d2a2fc30497224373772a1001d6 Mon Sep 17 00:00:00 2001 From: Oleg Bulatov Date: Thu, 6 May 2021 17:47:43 +0200 Subject: [PATCH] updatefrequency should not be saved into duration When updatefrequency is set and is a string, its value should be saved into updateFrequency, and it shouldn't override duration. Signed-off-by: Oleg Bulatov --- registry/storage/driver/middleware/cloudfront/middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/storage/driver/middleware/cloudfront/middleware.go b/registry/storage/driver/middleware/cloudfront/middleware.go index 2b680a1f..8de0aa23 100644 --- a/registry/storage/driver/middleware/cloudfront/middleware.go +++ b/registry/storage/driver/middleware/cloudfront/middleware.go @@ -127,7 +127,7 @@ func newCloudFrontStorageMiddleware(storageDriver storagedriver.StorageDriver, o if err != nil { return nil, fmt.Errorf("invalid updatefrequency: %s", err) } - duration = updateFreq + updateFrequency = updateFreq } }