From cdca8fbfe81b13b1ec08de74e17f3f3c4858bb21 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 21 Feb 2019 16:15:13 -0800 Subject: [PATCH] configs/configupgrade: Correct ignore_changes error message Due to a copy-paste error, this was using the message from the providers map in a "module" block. This new message is not particularly helpful, but we should only see it for a configuration that wouldn't have been valid in 0.11 either, and so it's unlikely to be displayed. --- configs/configupgrade/upgrade_body.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/configupgrade/upgrade_body.go b/configs/configupgrade/upgrade_body.go index e91dc43186..d091916acc 100644 --- a/configs/configupgrade/upgrade_body.go +++ b/configs/configupgrade/upgrade_body.go @@ -514,8 +514,8 @@ func lifecycleBlockBodyRules(filename string, an *analysis) bodyContentRules { if !ok { diags = diags.Append(&hcl2.Diagnostic{ Severity: hcl2.DiagError, - Summary: "Invalid providers argument", - Detail: `The "providers" argument must be a map from provider addresses in the child module to corresponding provider addresses in this module.`, + Summary: "Invalid ignore_changes argument", + Detail: `The "ignore_changes" argument must be a list of attribute expressions relative to this resource.`, Subject: hcl1PosRange(filename, item.Keys[0].Pos()).Ptr(), }) return diags