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.
This commit is contained in:
Martin Atkins 2019-02-21 16:15:13 -08:00
parent 0095a944cd
commit cdca8fbfe8
1 changed files with 2 additions and 2 deletions

View File

@ -514,8 +514,8 @@ func lifecycleBlockBodyRules(filename string, an *analysis) bodyContentRules {
if !ok { if !ok {
diags = diags.Append(&hcl2.Diagnostic{ diags = diags.Append(&hcl2.Diagnostic{
Severity: hcl2.DiagError, Severity: hcl2.DiagError,
Summary: "Invalid providers argument", Summary: "Invalid ignore_changes argument",
Detail: `The "providers" argument must be a map from provider addresses in the child module to corresponding provider addresses in this module.`, Detail: `The "ignore_changes" argument must be a list of attribute expressions relative to this resource.`,
Subject: hcl1PosRange(filename, item.Keys[0].Pos()).Ptr(), Subject: hcl1PosRange(filename, item.Keys[0].Pos()).Ptr(),
}) })
return diags return diags