From d05c0f15bce265a17f50d7c080820217fbdf0b7a Mon Sep 17 00:00:00 2001 From: Krystian Panek Date: Sun, 29 Oct 2023 21:11:28 +0100 Subject: [PATCH] Bug --- internal/provider/instance_resource.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/instance_resource.go b/internal/provider/instance_resource.go index 2a2ad14..2f35c90 100644 --- a/internal/provider/instance_resource.go +++ b/internal/provider/instance_resource.go @@ -273,7 +273,7 @@ func (r *InstanceResource) Read(ctx context.Context, req resource.ReadRequest, r } ic, err := r.Client(ctx, model, time.Second*15) - if err == nil { + if err != nil { resp.Diagnostics.AddWarning("Unable to connect to AEM instance", fmt.Sprintf("%s", err)) } else { defer func(ic *InstanceClient) {