mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Fix inverted entries in provider error message (#1991)
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
parent
d896e939f0
commit
53130fa487
@ -679,8 +679,8 @@ func validateProviderConfigs(parentCall *ModuleCall, cfg *Config, noProviderConf
|
|||||||
Summary: errSummary,
|
Summary: errSummary,
|
||||||
Detail: fmt.Sprintf(
|
Detail: fmt.Sprintf(
|
||||||
"The assigned configuration is for provider %q, but local name %q in %s represents %q.\n\nTo pass this configuration to the child module, use the local name %q instead.",
|
"The assigned configuration is for provider %q, but local name %q in %s represents %q.\n\nTo pass this configuration to the child module, use the local name %q instead.",
|
||||||
parentAddr.Provider.ForDisplay(), passed.InChild.Name,
|
providerAddr.Provider.ForDisplay(), passed.InChild.Name,
|
||||||
parentModuleText, providerAddr.Provider.ForDisplay(),
|
parentModuleText, parentAddr.Provider.ForDisplay(),
|
||||||
otherLocalName,
|
otherLocalName,
|
||||||
),
|
),
|
||||||
Subject: &passed.InChild.NameRange,
|
Subject: &passed.InChild.NameRange,
|
||||||
|
Loading…
Reference in New Issue
Block a user