Skip to content

Commit

Permalink
Merge pull request #765 from Juniper/bug/764-missing-return
Browse files Browse the repository at this point in the history
Fix 404 handling in `apstra_datacenter_connectivity_template_assignments` resource
  • Loading branch information
chrismarget-j authored Aug 9, 2024
2 parents 0673c41 + 09d3dad commit 716199c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func (o *resourceDatacenterConnectivityTemplateAssignments) Read(ctx context.Con
var ace apstra.ClientErr
if errors.As(err, &ace) && ace.Type() == apstra.ErrNotfound {
resp.State.RemoveResource(ctx)
return
}
resp.Diagnostics.AddError(
fmt.Sprintf("failed while reading Application Point assignments for Connectivity Template %s", state.ConnectivityTemplateId),
Expand Down

0 comments on commit 716199c

Please sign in to comment.