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:
parent
0095a944cd
commit
cdca8fbfe8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue