Skip to content

Commit

Permalink
add return (duh)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwJuniper committed Oct 30, 2024
1 parent 8ff84d3 commit f2052e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apstra/blueprint/node_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ func (o *NodeTypeSystem) AttributesFromApi(ctx context.Context, client *apstra.C
if !ok {
if o.NullWhenNotFound.ValueBool() {
o.Attributes = types.ObjectNull(NodeTypeSystemAttributes{}.AttrTypes())
return
}
diags.AddError("Node not found",
fmt.Sprintf("Node with ID %q not found in blueprint %q",
Expand All @@ -97,6 +98,7 @@ func (o *NodeTypeSystem) AttributesFromApi(ctx context.Context, client *apstra.C
if !ok {
if o.NullWhenNotFound.ValueBool() {
o.Attributes = types.ObjectNull(NodeTypeSystemAttributes{}.AttrTypes())
return
}
diags.AddError("Node not found",
fmt.Sprintf("Node with Name %q not found in blueprint %q",
Expand Down

0 comments on commit f2052e3

Please sign in to comment.