From d5ea1fad478c5fa3bd757cc0b6e98deeae643c2e Mon Sep 17 00:00:00 2001 From: Brad Sickles Date: Thu, 22 Jun 2023 11:33:14 -0400 Subject: [PATCH] Fix error msg (#30) --- CHANGELOG.md | 6 ++++++ internal/provider/resource_autogen_subdomain.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2157ee2..b7eb26f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 0.6.21 (Jun 22, 2023) + +BUG FIXES: + +* Fixed error message when autogen subdomain is unable to destroy. + ## 0.6.20 (May 15, 2023) BUG FIXES: diff --git a/internal/provider/resource_autogen_subdomain.go b/internal/provider/resource_autogen_subdomain.go index 54863d0..a524dfe 100644 --- a/internal/provider/resource_autogen_subdomain.go +++ b/internal/provider/resource_autogen_subdomain.go @@ -211,7 +211,7 @@ func (r *resourceAutogenSubdomain) Destroy(ctx context.Context, prior map[string } else if !found { diags = append(diags, &tfprotov5.Diagnostic{ Severity: tfprotov5.DiagnosticSeverityError, - Summary: fmt.Sprintf("The autogen_subdomain for the subdomain %d and env %q is missing.", subdomainId, envId), + Summary: fmt.Sprintf("The autogen_subdomain for the subdomain %d and env %d is missing.", subdomainId, envId), }) }