From ebb3b8ac3ef463568d5068c1780ea411e06c9ebc Mon Sep 17 00:00:00 2001 From: Martin Helmich Date: Wed, 15 Nov 2023 15:41:59 +0100 Subject: [PATCH] Fix error when configuring resources in validation step --- internal/provider/providerutil/util.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/provider/providerutil/util.go b/internal/provider/providerutil/util.go index 507e2ba..31fe441 100644 --- a/internal/provider/providerutil/util.go +++ b/internal/provider/providerutil/util.go @@ -10,11 +10,6 @@ import ( // provider data. func ClientFromProviderData(providerData any, d *diag.Diagnostics) mittwaldv2.ClientBuilder { if providerData == nil { - d.AddError( - "mittwald API client is not set", - "Expected mittwaldv2.ClientBuilder, got: nil. Please report this issue to the provider developers at https://github.com/mittwald/terraform-provider-mittwald/issues.", - ) - return nil }