diff --git a/addrs/module_instance.go b/addrs/module_instance.go index d26aee277..eff9d1374 100644 --- a/addrs/module_instance.go +++ b/addrs/module_instance.go @@ -413,3 +413,10 @@ func (m ModuleInstance) TargetContains(other Targetable) bool { func (m ModuleInstance) targetableSigil() { // ModuleInstance is targetable } + +func (s ModuleInstanceStep) String() string { + if s.InstanceKey != NoKey { + return s.Name + s.InstanceKey.String() + } + return s.Name +}