core: Fix misleading log message in ProviderTransformer

The final "<resource> provided by <provider>" message was showing the
original selection made by the resource itself rather than the provider
address finally resolved after inheritance, which caused the log to
misrepresent what was actually being created in the graph.
This commit is contained in:
Martin Atkins 2018-05-10 10:38:24 -07:00
parent f7b8e3b8be
commit 5863c581ee
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ func (t *ProviderTransformer) Transform(g *Graph) error {
key = target.(GraphNodeProvider).ProviderAddr().String()
}
log.Printf("[DEBUG] %s provided by %s", dag.VertexName(pv), key)
log.Printf("[DEBUG] %s provided by %s", dag.VertexName(pv), dag.VertexName(target))
pv.SetProvider(target.ProviderAddr())
g.Connect(dag.BasicEdge(v, target))
}