|
|
|
|
@ -182,7 +182,7 @@ func (n *NodeAbstractResource) References() []*addrs.Reference {
|
|
|
|
|
if n.Schema == nil {
|
|
|
|
|
// Should never happens, but we'll log if it does so that we can
|
|
|
|
|
// see this easily when debugging.
|
|
|
|
|
log.Printf("[WARN] no schema is attached to %s, so references cannot be detected", n.Name())
|
|
|
|
|
log.Printf("[WARN] no schema is attached to %s, so config references cannot be detected", n.Name())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
refs, _ := lang.ReferencesInExpr(c.Count)
|
|
|
|
|
@ -220,6 +220,13 @@ func (n *NodeAbstractResourceInstance) References() []*addrs.Reference {
|
|
|
|
|
// embedded abstract resource, which knows how to extract dependencies
|
|
|
|
|
// from configuration.
|
|
|
|
|
if n.Config != nil {
|
|
|
|
|
if n.Schema == nil {
|
|
|
|
|
// We'll produce a log message about this out here so that
|
|
|
|
|
// we can include the full instance address, since the equivalent
|
|
|
|
|
// message in NodeAbstractResource.References cannot see it.
|
|
|
|
|
log.Printf("[WARN] no schema is attached to %s, so config references cannot be detected", n.Name())
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
return n.NodeAbstractResource.References()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|