Skip to content

Commit

Permalink
refactor: reducing key even more
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce-Soghigian committed Dec 7, 2024
1 parent 21816ff commit 3df028a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/providers/imagefamily/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down

0 comments on commit 3df028a

Please sign in to comment.