Skip to content

Commit

Permalink
Merge pull request #7826 from r4f4/azure-ic-fmt-error-fix
Browse files Browse the repository at this point in the history
OCPBUGS-25191: ic: azure: fix retrieving marketplace image
  • Loading branch information
openshift-merge-bot[bot] committed Dec 12, 2023
2 parents 271f256 + 155c12f commit 12a8935
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/asset/installconfig/azure/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,10 @@ func (c *Client) GetMarketplaceImage(ctx context.Context, region, publisher, off
defer cancel()

image, err := client.Get(ctx, region, publisher, offer, sku, version)
return image, fmt.Errorf("could not get marketplace image: %w", err)
if err != nil {
return image, fmt.Errorf("could not get marketplace image: %w", err)
}
return image, nil
}

// AreMarketplaceImageTermsAccepted tests whether the terms have been accepted for the specified marketplace VM image.
Expand Down

0 comments on commit 12a8935

Please sign in to comment.