From 08a47efb61176ceb8fb76b1e054930717e4cd2a5 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Thu, 16 May 2019 11:40:32 -0700 Subject: [PATCH] command/0.12upgrade: Report correct child module path Previously this was reporting the parent module path rather than the child module path. --- command/012checklist.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/012checklist.go b/command/012checklist.go index 8817718098..bfa563f673 100644 --- a/command/012checklist.go +++ b/command/012checklist.go @@ -157,7 +157,7 @@ func (c *ZeroTwelveChecklistCommand) zeroTwelveChecklists(mod *module.Tree, into // in the upstream repository. childItems := c.zeroTwelveChecklistForModule(childMod) if len(childItems) > 0 { - items = append(items, fmt.Sprintf("Upgrade child module %q to a version that passes \"terraform 0.12checklist\".", strings.Join(mod.Path(), "."))) + items = append(items, fmt.Sprintf("Upgrade child module %q to a version that passes \"terraform 0.12checklist\".", strings.Join(childMod.Path(), "."))) } continue }