terraform-provider: only print license warning once in provider (#2865)

Co-authored-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
This commit is contained in:
Adrian Stobbe 2024-01-29 15:21:30 +01:00 committed by GitHub
parent f78f5540bc
commit 7ce5caae24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -449,8 +449,8 @@ func (r *ClusterResource) ModifyPlan(ctx context.Context, req resource.ModifyPla
licenseID := plannedState.LicenseID.ValueString()
if licenseID == "" {
resp.Diagnostics.AddWarning("Constellation license not found.",
"Using community license.\nFor details, see https://docs.edgeless.systems/constellation/overview/license")
resp.Diagnostics.AddWarning("Constellation license ID not set.",
"Continuing with community license.")
}
if licenseID == license.CommunityLicense {
resp.Diagnostics.AddWarning("Using community license.",