From 21ea518f1e1b325e500da7d51ce986631d4a0b65 Mon Sep 17 00:00:00 2001 From: Krystian Panek Date: Fri, 3 Nov 2023 09:30:40 +0100 Subject: [PATCH] IP change case --- 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 839cbda..d3e2c6a 100644 --- a/internal/provider/instance_resource.go +++ b/internal/provider/instance_resource.go @@ -299,7 +299,7 @@ func (r *InstanceResource) Read(ctx context.Context, req resource.ReadRequest, r ic, err := r.client(ctx, model, time.Second*15) if err != nil { - resp.Diagnostics.AddWarning("Unable to connect to AEM instance", fmt.Sprintf("%s", err)) + tflog.Info(ctx, "Cannot read AEM instance state as it is not possible to connect at the moment. Possible reasons: machine IP change is in progress, machine is not yet created or booting up, etc.") } else { defer func(ic *InstanceClient) { err := ic.Close()