Skip to content

Commit ba3ccb9

Browse files
committed
fixup
1 parent c86bb33 commit ba3ccb9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/provider/group_resource.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ func (r *GroupResource) Create(ctx context.Context, req resource.CreateRequest,
136136
orgID, err := uuid.Parse(data.OrganizationID.ValueString())
137137
if err != nil {
138138
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to parse supplied organization ID as UUID, got error: %s", err))
139+
return
139140
}
140141

141142
displayName := data.Name.ValueString()
@@ -193,6 +194,7 @@ func (r *GroupResource) Read(ctx context.Context, req resource.ReadRequest, resp
193194
groupID, err := uuid.Parse(data.ID.ValueString())
194195
if err != nil {
195196
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to parse supplied group ID as UUID, got error: %s", err))
197+
return
196198
}
197199

198200
group, err := client.Group(ctx, groupID)
@@ -230,6 +232,7 @@ func (r *GroupResource) Update(ctx context.Context, req resource.UpdateRequest,
230232
groupID, err := uuid.Parse(data.ID.ValueString())
231233
if err != nil {
232234
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to parse supplied group ID as UUID, got error: %s", err))
235+
return
233236
}
234237

235238
group, err := client.Group(ctx, groupID)
@@ -280,6 +283,7 @@ func (r *GroupResource) Delete(ctx context.Context, req resource.DeleteRequest,
280283
groupID, err := uuid.Parse(data.ID.ValueString())
281284
if err != nil {
282285
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to parse supplied group ID as UUID, got error: %s", err))
286+
return
283287
}
284288

285289
tflog.Trace(ctx, "deleting group")

0 commit comments

Comments
 (0)