Skip to content

Commit

Permalink
terraform-provider: allow GCP MPIs
Browse files Browse the repository at this point in the history
  • Loading branch information
msanft committed Jan 8, 2024
1 parent 48e8847 commit 005a21b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ func (d *ImageDataSource) ValidateConfig(ctx context.Context, req datasource.Val
)
}

// Marketplace image is only supported for Azure
if !data.CSP.Equal(types.StringValue("azure")) && !data.MarketplaceImage.IsNull() {
// Marketplace image is only supported for Azure and GCP
if data.CSP.Equal(types.StringValue("aws")) && !data.MarketplaceImage.IsNull() {
resp.Diagnostics.AddAttributeWarning(
path.Root("marketplace_image"),
"Marketplace images are currently only supported on Azure", "When another CSP than Azure is used, setting 'marketplace_image' has no effect.",
"Marketplace images are currently only supported on Azure and GCP", "When another CSP than Azure or GCP is used, setting 'marketplace_image' has no effect.",
)
}

Expand Down

0 comments on commit 005a21b

Please sign in to comment.