terraform: stateId for resource
This commit is contained in:
parent
98eb9a1f19
commit
2b8fd18fa8
|
@ -61,7 +61,7 @@ func (n *graphNodeExpandedResource) Name() string {
|
|||
func (n *graphNodeExpandedResource) DependableName() []string {
|
||||
return []string{
|
||||
n.Resource.Id(),
|
||||
fmt.Sprintf("%s.%d", n.Resource.Id(), n.Index),
|
||||
n.stateId(),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -98,3 +98,8 @@ func (n *graphNodeExpandedResource) EvalTree() EvalNode {
|
|||
|
||||
return seq
|
||||
}
|
||||
|
||||
// stateId is the name used for the state key
|
||||
func (n *graphNodeExpandedResource) stateId() string {
|
||||
return fmt.Sprintf("%s.%d", n.Resource.Id(), n.Index)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue