Skip to content

Commit

Permalink
do not attempt to validate unknown attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismarget-j committed Nov 5, 2024
1 parent 976bcb4 commit 3caf4a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apstra/blueprint/datacenter_virtual_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,10 @@ func (o DatacenterVirtualNetwork) ValidateConfigBindingsReservation(ctx context.
func (o DatacenterVirtualNetwork) VersionConstraints() compatibility.ConfigConstraints {
var response compatibility.ConfigConstraints

if o.Bindings.IsUnknown() {
return response // cannot validate with unknown bindings
}

if len(o.Bindings.Elements()) == 0 {
response.AddAttributeConstraints(
compatibility.AttributeConstraint{
Expand Down

0 comments on commit 3caf4a3

Please sign in to comment.