Skip to content

Commit

Permalink
fix: format azure compute gallery image ID
Browse files Browse the repository at this point in the history
  • Loading branch information
shalin patel committed Oct 21, 2022
1 parent 19c9b68 commit 5400b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure/converters/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ func computeImageToSDK(image *infrav1.Image) (*compute.ImageReference, error) {
if image.ComputeGallery.ResourceGroup != nil && image.ComputeGallery.SubscriptionID != nil {
return &compute.ImageReference{
ID: to.StringPtr(fmt.Sprintf(idTemplate,
image.ComputeGallery.SubscriptionID,
image.ComputeGallery.ResourceGroup,
to.String(image.ComputeGallery.SubscriptionID),
to.String(image.ComputeGallery.ResourceGroup),
image.ComputeGallery.Gallery,
image.ComputeGallery.Name,
image.ComputeGallery.Version,
Expand Down

0 comments on commit 5400b25

Please sign in to comment.