Skip to content

Commit

Permalink
Merge pull request #784 from Juniper/bug/783-provider-version-validat…
Browse files Browse the repository at this point in the history
…ion-experimental

Do not error on version support when experimental is set
  • Loading branch information
chrismarget-j authored Aug 13, 2024
2 parents 22a2428 + 921424c commit a108e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apstra/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func (p *Provider) Configure(ctx context.Context, req provider.ConfigureRequest,
return
}

if !slices.Contains(compatibility.SupportedApiVersions(), client.ApiVersion()) {
if !slices.Contains(compatibility.SupportedApiVersions(), client.ApiVersion()) && !config.Experimental.ValueBool() {
resp.Diagnostics.AddError( // provider incompatibility detected
fmt.Sprintf("Incompatible Apstra API Version %s", client.ApiVersion()),
"You may be trying to use an unsupported version of Apstra. Setting `experimental = true` "+
Expand Down

0 comments on commit a108e9b

Please sign in to comment.