terraform: Ignore orphans in provisioner setup

This commit is contained in:
Armon Dadgar 2014-07-08 10:52:59 -07:00
parent 8901a6753b
commit 9fc6413775
1 changed files with 5 additions and 0 deletions

View File

@ -736,6 +736,11 @@ func graphMapResourceProvisioners(g *depgraph.Graph,
continue
}
// Ignore orphan nodes with no provisioners
if rn.Config == nil {
continue
}
// Check each provisioner
for _, p := range rn.Config.Provisioners {
// Check for a cached provisioner