mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
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:
parent
f78f5540bc
commit
7ce5caae24
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user