terraform: clarify commment

This commit is contained in:
Mitchell Hashimoto 2016-09-15 00:02:29 -07:00
parent 39abec4970
commit 4033e90474
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 4 additions and 0 deletions

View File

@ -355,6 +355,10 @@ func providerVertexMap(g *Graph) map[string]dag.Vertex {
for _, v := range g.Vertices() {
if pv, ok := v.(GraphNodeProvider); ok {
key := pv.ProviderName()
// This special case is because the new world view of providers
// is that they should return only their pure name (not the full
// module path with ProviderName). Working towards this future.
if _, ok := v.(*NodeApplyableProvider); ok {
key = providerMapKey(pv.ProviderName(), v)
}