Skip to content

Commit

Permalink
Merge pull request #125 from Juniper/bug/123
Browse files Browse the repository at this point in the history
Bug #123 attempt to extract not-yet-calculated values in config
  • Loading branch information
chrismarget-j authored May 27, 2023
2 parents 563f2d4 + eadef75 commit 6fee6a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apstra/resource_logical_device.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ func (o *resourceLogicalDevice) ValidateConfig(ctx context.Context, req resource
return
}

// extract []LogicalDevicePanel from the resourceLogicalDevice
if config.Panels.IsUnknown() {
return // cannot validate unknown panels
}
panels := config.GetPanels(ctx, &resp.Diagnostics)
if resp.Diagnostics.HasError() {
return
Expand Down

0 comments on commit 6fee6a7

Please sign in to comment.