mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
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
Block a user