terraform: provider depends on config references

This commit is contained in:
Mitchell Hashimoto 2016-09-19 10:01:57 -07:00
parent ebc7d209a7
commit 56b4521d8f
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,15 @@ func (n *NodeApplyableProvider) Path() []string {
return n.PathValue
}
// GraphNodeReferencer
func (n *NodeApplyableProvider) References() []string {
if n.Config == nil {
return nil
}
return ReferencesFromConfig(n.Config.RawConfig)
}
// GraphNodeProvider
func (n *NodeApplyableProvider) ProviderName() string {
return n.NameValue