From 3df028a719a5b4436cdba1f9fb0c19bfa50cbd67 Mon Sep 17 00:00:00 2001 From: Bryce Soghigian Date: Fri, 6 Dec 2024 16:19:59 -0800 Subject: [PATCH] refactor: reducing key even more --- pkg/providers/imagefamily/image.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/providers/imagefamily/image.go b/pkg/providers/imagefamily/image.go index a960d9c4b..d03893efe 100644 --- a/pkg/providers/imagefamily/image.go +++ b/pkg/providers/imagefamily/image.go @@ -50,9 +50,9 @@ const ( imageExpirationInterval = time.Hour * 24 * 3 imageCacheCleaningInterval = time.Hour * 1 - sharedImageKey = "/galleries/%s/images/%s" + sharedImageKey = "%s/%s" // imageGallery + imageDefinition sharedImageGalleryImageIDFormat = "/subscriptions/%s/resourceGroups/%s/providers/Microsoft.Compute/galleries/%s/images/%s/versions/%s" - communityImageKey = "/CommunityGalleries/%s/images/%s" + communityImageKey = "%s/%s" // PublicGalleryURL + communityImageName communityImageIDFormat = "/CommunityGalleries/%s/images/%s/versions/%s" )