terraform: fix formatting of node name with index -1
This commit is contained in:
parent
f7bed9a2f9
commit
57eae5f9a8
|
@ -61,6 +61,10 @@ type graphNodeExpandedResource struct {
|
|||
}
|
||||
|
||||
func (n *graphNodeExpandedResource) Name() string {
|
||||
if n.Index == -1 {
|
||||
return n.Resource.Id()
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s #%d", n.Resource.Id(), n.Index)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue