From 53130fa4878ae2f71c445b6e0b6470e9358acc81 Mon Sep 17 00:00:00 2001 From: Christian Mesh Date: Wed, 18 Sep 2024 11:11:15 -0400 Subject: [PATCH] Fix inverted entries in provider error message (#1991) Signed-off-by: Christian Mesh --- internal/configs/provider_validation.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/configs/provider_validation.go b/internal/configs/provider_validation.go index dbddca365a..47caa87b38 100644 --- a/internal/configs/provider_validation.go +++ b/internal/configs/provider_validation.go @@ -679,8 +679,8 @@ func validateProviderConfigs(parentCall *ModuleCall, cfg *Config, noProviderConf Summary: errSummary, 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.", - parentAddr.Provider.ForDisplay(), passed.InChild.Name, - parentModuleText, providerAddr.Provider.ForDisplay(), + providerAddr.Provider.ForDisplay(), passed.InChild.Name, + parentModuleText, parentAddr.Provider.ForDisplay(), otherLocalName, ), Subject: &passed.InChild.NameRange,