command/0.12upgrade: Report correct child module path

Previously this was reporting the parent module path rather than the child
module path.
pull/21939/head
Martin Atkins 7 years ago
parent 1fb5d1c42f
commit 08a47efb61

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

Loading…
Cancel
Save