From 748d01916906d7754cfba9430c8d7404b0669b24 Mon Sep 17 00:00:00 2001 From: Robert Hoppe Date: Thu, 21 Nov 2024 10:55:37 +0100 Subject: [PATCH] Catch missing id on data services (#257) Co-authored-by: Robert Hoppe --- stackit/internal/resources/data-services/credential/actions.go | 1 + 1 file changed, 1 insertion(+) diff --git a/stackit/internal/resources/data-services/credential/actions.go b/stackit/internal/resources/data-services/credential/actions.go index f186f0aa..b049bbf5 100644 --- a/stackit/internal/resources/data-services/credential/actions.go +++ b/stackit/internal/resources/data-services/credential/actions.go @@ -78,6 +78,7 @@ func (r Resource) Read(ctx context.Context, req resource.ReadRequest, resp *reso if res.JSON200 == nil { resp.Diagnostics.AddError("failed to process client response", "Credentials response is empty") + return } if err := r.applyClientResponse(ctx, &cred, res.JSON200); err != nil {