terraform: fixing provisioner invocation

This commit is contained in:
Armon Dadgar 2014-09-16 17:23:01 -07:00
parent 78471d2aa0
commit edccc2de3f
1 changed files with 1 additions and 1 deletions

View File

@ -629,7 +629,7 @@ func (c *Context) applyWalkFn() depgraph.WalkFunc {
// Additionally, we need to be careful to not run this if there
// was an error during the provider apply.
tainted := false
if applyerr == nil && r.State.Primary.ID == "" && len(r.Provisioners) > 0 {
if applyerr == nil && r.State.Primary.ID != "" && len(r.Provisioners) > 0 {
for _, h := range c.hooks {
handleHook(h.PreProvisionResource(r.Id, r.State))
}