Fix inverted entries in provider error message (#1991)

Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
This commit is contained in:
Christian Mesh 2024-09-18 11:11:15 -04:00 committed by GitHub
parent d896e939f0
commit 53130fa487
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,